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 e6c0b58 commit 6f370fdCopy full SHA for 6f370fd
tests/pos-special/isInstanceOf/i16899.scala
@@ -0,0 +1,5 @@
1
+sealed trait Unset
2
+
3
+def foo(v: Unset|Option[Int]): Unit = v match
4
+ case v: Unset => ()
5
+ case v: Option[Int] => ()
0 commit comments