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
--Error:Test.scala:1:10----------------------------------------------------1|deftest:Option[Int] =Some(1)
|^|Could not read definition classOption in ./scala2-library-cc-tasty/../out/bootstrap/scala2-library-cc-tasty/scala-3.4.0-RC1-bin-SNAPSHOT-nonbootstrapped/scala2-library-cc-tasty_3-3.4.0-RC1-bin-SNAPSHOT.jar(scala/Option.tasty). Caused by the following exception:
|dotty.tools.dotc.core.UnpicklingError:Could not read definition typeIterableOnce in ./scala2-library-cc-tasty/../out/bootstrap/scala2-library-cc-tasty/scala-3.4.0-RC1-bin-SNAPSHOT-nonbootstrapped/scala2-library-cc-tasty_3-3.4.0-RC1-bin-SNAPSHOT.jar(scala/package.tasty). Caused by the following exception:
|dotty.tools.dotc.core.UnpicklingError:Could not read definition traitIterableOnce in ./scala2-library-cc-tasty/../out/bootstrap/scala2-library-cc-tasty/scala-3.4.0-RC1-bin-SNAPSHOT-nonbootstrapped/scala2-library-cc-tasty_3-3.4.0-RC1-bin-SNAPSHOT.jar(scala/collection/IterableOnce.tasty). Caused by the following exception:
|dotty.tools.dotc.core.UnpicklingError:Could not read definition traitIterable in ./scala2-library-cc-tasty/../out/bootstrap/scala2-library-cc-tasty/scala-3.4.0-RC1-bin-SNAPSHOT-nonbootstrapped/scala2-library-cc-tasty_3-3.4.0-RC1-bin-SNAPSHOT.jar(scala/collection/immutable/Iterable.tasty). Caused by the following exception:
|dotty.tools.dotc.core.UnpicklingError:Could not read definition traitIterable in ./scala2-library-cc-tasty/../out/bootstrap/scala2-library-cc-tasty/scala-3.4.0-RC1-bin-SNAPSHOT-nonbootstrapped/scala2-library-cc-tasty_3-3.4.0-RC1-bin-SNAPSHOT.jar(scala/collection/Iterable.tasty). Caused by the following exception:
|dotty.tools.dotc.core.CyclicReference:Cyclic reference involving traitSeq||Runwith-Ydebug-unpickling to see full stack trace.
1 error found
The text was updated successfully, but these errors were encountered:
Fixes#19398
Clean up the logic how we infer self types, and add a new clause:
> If we have an externally extensible class that itself does not have a
declared self type itself and also not in any of its base classes,
assume {cap} as the self type. Previously we would install a capture
set but then check after the fact that that capture set is indeed {cap}.
So it's less verbose to just assume that from the start.
Minimized example
See http://dotty.epfl.ch/docs/contributing/testing.html#scala-2-library-tasty-tests-1 for info on using the Scala 2 TASTy library.
Output
The text was updated successfully, but these errors were encountered: