We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a96b8e commit 0e00e69Copy full SHA for 0e00e69
tests/neg/unchecked-patterns.scala
@@ -1,4 +1,6 @@
1
object Test {
2
val (y1: Some[Int] @unchecked) = Some(1): Option[Int] // OK
3
val y2: Some[Int] @unchecked = Some(1): Option[Int] // error
4
+
5
+ val x :: xs = List(1, 2, 3) // error
6
}
0 commit comments