Closed sebthom closed 3 years ago
do you have a minimal reproducible snippet?
Here is a small sample project.
d1610609727244ab57fa03ddf362d5b57a0094c7 seems to fix c#.
As for java I am not sure if it is fixable. It is a long standing issue about type parameters in generated java. I suggest using jvm instead.
p.s. the generated java interface has T get();
, but the generated implementation is java.lang.Object get();
I wonder what changed in tink_core or tinkrunner lately as it used to work fine with Java target.
I think Lazy is overhauled in 2.0
Works now. But as Kevin suggested, it's best to transition to the jvm target. The java target is not really maintained anymore, so it's only a matter of time until we run into an issue that requires a major workaround and we probably won't be able to afford maintaining that.
Maybe we should get the java target deprecated officially.
@back2dos @kevinresol Would you mind publishing another release (2.0.0-rc.2?) with this fix in place?
Done.
I am using tink_testrunner in haxe-doctest and lately the java and c# target fail to compile because of this error:
Java: https://travis-ci.com/github/vegardit/haxe-doctest/jobs/423567360
\ C#: https://travis-ci.com/github/vegardit/haxe-doctest/jobs/423567357
I tested with Haxe 4.1.4 and 4.0.4
Any ideas how to fix this?