소스 검색

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

Rudy Ges 7 달 전
부모
커밋
53b3269871
2개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 13 0
      tests/misc/projects/Issue9571/Main.hx
  2. 1 0
      tests/misc/projects/Issue9571/compile.hxml

+ 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