haxetink / tink_streams

Streams from the future. With lasers, of course ... whoaaaaa!!!!
The Unlicense
12 stars 9 forks source link

Haxe 4.2 issue: IdealStreamBase<IdealStreamBase.Item> should be IdealStream<IdealStreamBase.Item> #26

Closed sebthom closed 3 years ago

sebthom commented 3 years ago

I opened https://github.com/haxetink/tink_testrunner/issues/19 regarding this error, but the core issue probably is in tink_streams, I am getting the following error when trying tink_testrunner with Haxe 4.2.

Any ideas how to fix this?

  > haxe -cpp bin/cpp -lib travix -lib haxe-doctest D:/a/haxe-doctest/haxe-doctest/tests.hxml
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_streams/0,3,3/src/tink/streams/IdealStream.hx:30: characters 5-16 : tink.streams.IdealStreamBase<tink.streams.IdealStreamBase.Item> should be tink.streams.IdealStream<tink.streams.IdealStreamBase.Item>
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_streams/0,3,3/src/tink/streams/Stream.hx:395: characters 12-44 : tink.streams.IdealizeStream<tink.streams.StreamBase.Item, tink.streams.StreamBase.Quality> should be tink.streams.IdealStream<tink.streams.StreamBase.Item>
  test/hx/doctest/tests/HaxeUnitTest.hx:16: characters 1-8 : Build failure
  test/hx/doctest/TestRunner.hx:14: lines 14-79 : ... Defined in this class
  test/hx/doctest/tests/MUnitTest.hx:32: characters 1-8 : Build failure
  test/hx/doctest/TestRunner.hx:14: lines 14-79 : ... Defined in this class
  test/hx/doctest/tests/TinkTestrunnerUnitTest.hx:17: characters 1-8 : Build failure
  test/hx/doctest/TestRunner.hx:14: lines 14-79 : ... Defined in this class
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\utest/1,13,2/src/utest/Test.hx:6: character 1 : Build failure
  test/hx/doctest/TestRunner.hx:14: lines 14-79 : ... Defined in this class
  test/hx/doctest/tests/DocTestTest.hx:14: characters 1-8 : Build failure
  test/hx/doctest/TestRunner.hx:14: lines 14-79 : ... Defined in this class
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_streams/0,3,3/src/tink/streams/IdealStream.hx:30: characters 5-16 : tink.streams.IdealStreamBase<tink.streams.IdealStreamBase.Item> should be tink.streams.IdealStream<tink.streams.IdealStreamBase.Item>
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_streams/0,3,3/src/tink/streams/Stream.hx:395: characters 12-44 : tink.streams.IdealizeStream<tink.streams.StreamBase.Item, tink.streams.StreamBase.Quality> should be tink.streams.IdealStream<tink.streams.StreamBase.Item>
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\ansi/1,0,0/src/ANSI.hx:56: characters 1-8 : Build failure
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_testrunner/0,8,0/src/tink/testrunner/Reporter.hx:50: lines 50-61 : ... Defined in this class
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_testrunner/0,8,0/src/tink/testrunner/Reporter.hx:53: characters 4-99 : Void should be String
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_testrunner/0,8,0/src/tink/testrunner/Reporter.hx:54: characters 23-27 : Class<ANSI> has no field aset
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_testrunner/0,8,0/src/tink/testrunner/Reporter.hx:54: characters 63-67 : Class<ANSI> has no field aset
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_testrunner/0,8,0/src/tink/testrunner/Reporter.hx:55: characters 22-26 : Class<ANSI> has no field aset
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_testrunner/0,8,0/src/tink/testrunner/Reporter.hx:55: characters 61-65 : Class<ANSI> has no field aset
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_testrunner/0,8,0/src/tink/testrunner/Reporter.hx:56: characters 24-28 : Class<ANSI> has no field aset
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_testrunner/0,8,0/src/tink/testrunner/Reporter.hx:56: characters 65-69 : Class<ANSI> has no field aset
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_testrunner/0,8,0/src/tink/testrunner/Reporter.hx:57: characters 25-29 : Class<ANSI> has no field aset
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_testrunner/0,8,0/src/tink/testrunner/Reporter.hx:57: characters 67-71 : Class<ANSI> has no field aset
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_testrunner/0,8,0/src/tink/testrunner/Reporter.hx:58: characters 22-26 : Class<ANSI> has no field aset
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_testrunner/0,8,0/src/tink/testrunner/Reporter.hx:58: characters 61-65 : Class<ANSI> has no field aset
  C:\hostedtoolcache\windows\haxe\4.2.1\x64\lib\tink_testrunner/0,8,0/src/tink/testrunner/Reporter.hx:59: characters 18-22 : Class<ANSI> has no field aset
back2dos commented 3 years ago

We added @:transitive all over the place, so this should be fine now \o/