Skip to content

Commit 16e8869

Browse files
authored
Update compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala
1 parent 0611948 commit 16e8869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ object TypeTestsCasts {
201201
// (not sure why that is so, but scalac behaves the same way)
202202
!(!testCls.isPrimitiveValueClass && foundCls.isPrimitiveValueClass) &&
203203
// foundCls can be `Boolean`, while testCls is `Integer`
204-
// it can happen in `(3: Boolean | Int).isInstanceOf[Boolean]`
204+
// it can happen in `(3: Boolean | Int).isInstanceOf[Int]`
205205
!isDerivedValueClass(foundCls) && !isDerivedValueClass(testCls)
206206
// we don't have the logic to handle derived value classes
207207

0 commit comments

Comments
 (0)