Skip to content

Commit d0b6b20

Browse files
committed
WIP - address review
1 parent afcc643 commit d0b6b20

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/transform/IsInstanceOfChecker.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ object Checkable {
4848
* (b) replace pattern binder types (e.g., `_$1`) in X:
4949
* - variance = 1 : hiBound
5050
* - variance = -1 : loBound
51-
* - variance = 0 : OrType(Any, Nothing)
51+
* - variance = 0 : OrType(Any, Nothing) // TODO: use original type param bounds
5252
*
5353
* Then check:
5454
*

tests/neg-custom-args/isInstanceOf/3324d.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ class Test {
33

44
x match {
55
case _: List[Int @unchecked] => 5
6+
case _: List[Int] @unchecked => 5
67
}
78

89
def foo(x: Any): Boolean =

0 commit comments

Comments
 (0)