Skip to content

Commit

Permalink
[tests] add test for 11608
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Mar 28, 2024
1 parent 78bbf68 commit d91c425
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/misc/projects/Issue11608/Test.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Test;

class Test {
static public function main() {}

static function doF2<T>(f: T -> Float) : T {
var arr = [];
arr.doF(f);
arr.doF(f);
return arr.doF(f);
}

@:generic
static function doF<T>(array: Array<T>, f: T -> Float) : T {
return null;
}
}
1 change: 1 addition & 0 deletions tests/misc/projects/Issue11608/compile.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-main Test

0 comments on commit d91c425

Please sign in to comment.