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
% dotc tests/neg-no-optimise/patmat1.scala
--Error: tests/neg-no-optimise/patmat1.scala:21:11----------------------------21|caseD() =>// error: neither a subtype not a supertype|^|thiscase is unreachable since classC and classD are unrelated
one error found
% dotc -optimise tests/neg-no-optimise/patmat1.scala
--Error: tests/neg-no-optimise/patmat1.scala:18:4-----------------------------18| cc match {
|^^|thiscase is unreachable since classC and classD are unrelated
one error found
The text was updated successfully, but these errors were encountered:
I don't think the `def run` in the original testcase should work given
that the added `def run2` doesn't in either scalac or dotty.
The testcase is in neg-no-optimise because of scala#3805.
This affects everything in https://github.com/lampepfl/dotty/tree/master/tests/neg-no-optimise:
The text was updated successfully, but these errors were encountered: