Skip to content

Commit cfbd740

Browse files
committed
Tweak in checkNonSensical
To be documented once we figured out whether it works.
1 parent daab14a commit cfbd740

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ trait TypeTestsCasts {
5555
val testCls = testType.typeSymbol
5656
!foundCls.isClass ||
5757
!testCls.isClass ||
58-
testCls.isPrimitiveValueClass ||
58+
foundCls.isPrimitiveValueClass != testCls.isPrimitiveValueClass ||
5959
ValueClasses.isDerivedValueClass(foundCls) ||
6060
ValueClasses.isDerivedValueClass(testCls) ||
6161
foundCls == defn.ObjectClass ||
@@ -72,7 +72,6 @@ trait TypeTestsCasts {
7272
else true
7373
}
7474
}
75-
println(i"test ii $tree ${expr.tpe} $testType")
7675

7776
if (expr.tpe <:< testType)
7877
if (expr.tpe.isNotNull) {

0 commit comments

Comments
 (0)