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 daab14a commit cfbd740Copy full SHA for cfbd740
compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala
@@ -55,7 +55,7 @@ trait TypeTestsCasts {
55
val testCls = testType.typeSymbol
56
!foundCls.isClass ||
57
!testCls.isClass ||
58
- testCls.isPrimitiveValueClass ||
+ foundCls.isPrimitiveValueClass != testCls.isPrimitiveValueClass ||
59
ValueClasses.isDerivedValueClass(foundCls) ||
60
ValueClasses.isDerivedValueClass(testCls) ||
61
foundCls == defn.ObjectClass ||
@@ -72,7 +72,6 @@ trait TypeTestsCasts {
72
else true
73
}
74
75
- println(i"test ii $tree ${expr.tpe} $testType")
76
77
if (expr.tpe <:< testType)
78
if (expr.tpe.isNotNull) {
0 commit comments