HaxeFoundation / HaxeFoundation/haxe

Type parameter constraints on local functions

Open
#9,559 1 comment 3 reactions 1 assignee Claimed by @Simn View on GitHub
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

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.