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
class Sample {
public function new() {}
public function test(value:Sample):Void
trace(value);
public static function getSomething<T>():T
return cast new Sample();
}
I guess if we could do this in Flow it wouldn't fail:
sample.test(Sample.getSomething());
Or if the generated code would be replaced to
sample.test(cast(Sample.getSomething(), Sample));
But both of these 2 solutions are not optimal if we reuse sample on many places.
By the way, I think it's worth saying that the raised error in this case is not very helpful and can be difficult to track down the source of the problem.
This (dummy) sample will fail:
In Flow:
Doing this works
The text was updated successfully, but these errors were encountered: