HaxeFoundation / HaxeFoundation/haxe

Support for generic type parameters on properties (get/set)

Open
#12,336 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Would it be possible to support generic type parameters on properties, specifically when using get and set accessors?
For example:
```haxe
public var value(get, set):T;

private function get_value():T;
private function set_value(v:T):T;
```
Since property accessors are compiled as functions, this will enable flexible, type-safe patterns without needing Dynamic or class-level generics.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.