Browse Source

[tests] add test for #9571 (#11974)

Rudy Ges 7 months ago
parent
commit
53b3269871

+ 13 - 0
tests/misc/projects/Issue9571/Main.hx

@@ -0,0 +1,13 @@
+class Main {
+	static function main() {}
+
+	static function f<TA:A>(v:TA) {
+		v.defined(); // works
+		v.forwarded(); // doesn't work before 4.2
+	}
+}
+
+@:forward(forwarded)
+abstract A({function forwarded():Void;}) {
+	public function defined() {}
+}

+ 1 - 0
tests/misc/projects/Issue9571/compile.hxml

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