Преглед на файлове

adjust test

Calling exclude before saving means that the class is extern on the next iteration, and thus not generated.
Simon Krajewski преди 1 година
родител
ревизия
1495a10e65
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 2 3
      tests/misc/java/projects/Issue10280/Main.hx

+ 2 - 3
tests/misc/java/projects/Issue10280/Main.hx

@@ -29,12 +29,11 @@ class OldClass {
 					public function new() {}
 				}
 			);
-
-			Compiler.exclude('OldClass');
-
 			defined = true;
 		});
 
+		Context.onGenerate(_ -> Compiler.exclude('OldClass'));
+
 		return null;
 	}
 }