HaxeFoundation / HaxeFoundation/haxe
Type parameter constraints on local functions
Open
feature-type-inference
test-needed
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
I don't think this is super duper useful, but I also don't see a reason for not allowing this just for the sake of consistency:
```haxe
class Main {
static public function main() {
function f(t:T) {}
f("foo");
f(12);
}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.