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 afcc643 commit d0b6b20Copy full SHA for d0b6b20
compiler/src/dotty/tools/dotc/transform/IsInstanceOfChecker.scala
@@ -48,7 +48,7 @@ object Checkable {
48
* (b) replace pattern binder types (e.g., `_$1`) in X:
49
* - variance = 1 : hiBound
50
* - variance = -1 : loBound
51
- * - variance = 0 : OrType(Any, Nothing)
+ * - variance = 0 : OrType(Any, Nothing) // TODO: use original type param bounds
52
*
53
* Then check:
54
tests/neg-custom-args/isInstanceOf/3324d.scala
@@ -3,6 +3,7 @@ class Test {
3
4
x match {
5
case _: List[Int @unchecked] => 5
6
+ case _: List[Int] @unchecked => 5
7
}
8
9
def foo(x: Any): Boolean =
0 commit comments