Skip to content

Commit

Permalink
[tests] Add test for #8472 (#11951)
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz authored Jan 29, 2025
1 parent 07bedce commit a5837fc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/misc/projects/Issue8472/Main.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class Main {
static function main() {
test(std.Type.ValueType);
}

static function test<T>(e:Enum<T>) {
trace(e.getName());
}
}

2 changes: 2 additions & 0 deletions tests/misc/projects/Issue8472/compile.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-main Main
--interp
1 change: 1 addition & 0 deletions tests/misc/projects/Issue8472/compile.hxml.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Main.hx:7: ValueType

0 comments on commit a5837fc

Please sign in to comment.