We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0611948 commit 16e8869Copy full SHA for 16e8869
compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala
@@ -201,7 +201,7 @@ object TypeTestsCasts {
201
// (not sure why that is so, but scalac behaves the same way)
202
!(!testCls.isPrimitiveValueClass && foundCls.isPrimitiveValueClass) &&
203
// foundCls can be `Boolean`, while testCls is `Integer`
204
- // it can happen in `(3: Boolean | Int).isInstanceOf[Boolean]`
+ // it can happen in `(3: Boolean | Int).isInstanceOf[Int]`
205
!isDerivedValueClass(foundCls) && !isDerivedValueClass(testCls)
206
// we don't have the logic to handle derived value classes
207
0 commit comments