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
In fact, () is not a legal type syntax, so something strange is happening here. If I run the analogous test tests/pos/i2554.scala in the normal compiler, I get:
Uh oh!
There was an error while loading. Please reload this page.
When running REPL test i2554, we fail in PR #3602 as follows:
The culprit is the last line:
In fact,
()
is not a legal type syntax, so something strange is happening here. If I run the analogous testtests/pos/i2554.scala
in the normal compiler, I get:Instead of the tuple with the two
#Packed
types, the REPL prints the()
.Note that without #3602 the REPL prints
(_, _)
, but this is actually wrong. For comparison, scalac, which has existential types prints:Note that this is not the same as
(_, _)
because the quantifier scope is wrong.The text was updated successfully, but these errors were encountered: