You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Simn If Void can't be used as a value, then what's going on here?
classTest {
staticfunctionmain() {
varg=newA<Void>();
g.test(null);
g.test2(voidVoid); // Void -> Void should be (Void) -> Unknown<0> For function argument 'f'// g.test2(cast voidVoid); // compiles and runs
}
staticfunctionvoidVoid():Void { }
}
classA<T> {
vart:T;
publicfunctionnew() { }
publicfunctiontest(t:T):Void { this.t=t; }
publicfunctiontest2<U>(f:T->U):Void { f(t); }
}
I got OP's error because my <T> happens to be Void in one case, and I tried to use that as an input to voidVoid. But I can still use Void/null as a value for g.test(null).
Following sample compiles and works fine with 3.2.1, but fails to compile with latest 3.3
Compilation error:
Same error for static callback properties.
try-haxe 3.3
try-haxe 3.2.1
The text was updated successfully, but these errors were encountered: