File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/reporting/diagnostic
tests/pos-special/isInstanceOf Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -910,7 +910,7 @@ object messages {
910910 case class MatchCaseUnreachable ()(implicit ctx : Context )
911911 extends Message (MatchCaseUnreachableID ) {
912912 val kind = " Match case Unreachable"
913- val msg = " unreachable code "
913+ val msg = " unreachable case "
914914 val explanation = " "
915915 }
916916
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ class Test {
33
44 x match {
55 case _ : List [Int @ unchecked] => 5
6- case _ : List [Int ] @ unchecked => 5
6+ case _ : Option [Int ] @ unchecked => 5
77 }
88}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ object Test {
22 trait Marker
33 def foo [T ](x : T ) = x match {
44 case _ : (T & Marker ) => // no warning
5- case _ : T with Marker => // scalac emits a warning
5+ case _ : T with String => // scalac emits a warning
66 case _ =>
77 }
88}
You can’t perform that action at this time.
0 commit comments