瀏覽代碼

[tests] Add test for #8472 (#11951)

Rudy Ges 6 月之前
父節點
當前提交
a5837fc584

+ 10 - 0
tests/misc/projects/Issue8472/Main.hx

@@ -0,0 +1,10 @@
+class Main {
+	static function main() {
+		test(std.Type.ValueType);
+	}
+
+	static function test<T>(e:Enum<T>) {
+		trace(e.getName());
+	}
+}
+

+ 2 - 0
tests/misc/projects/Issue8472/compile.hxml

@@ -0,0 +1,2 @@
+-main Main
+--interp

+ 1 - 0
tests/misc/projects/Issue8472/compile.hxml.stdout

@@ -0,0 +1 @@
+Main.hx:7: ValueType