Skip to content

Commit c097dde

Browse files
committed
fix tests
1 parent 5571d84 commit c097dde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ object Checkable {
9090

9191
def isClassDetermined(X: Type, P: AppliedType)(implicit ctx: Context) = {
9292
val AppliedType(tycon, _) = P
93-
val typeLambda = tycon.ensureHK.asInstanceOf[TypeLambda]
93+
val typeLambda = tycon.ensureLambdaSub.asInstanceOf[TypeLambda]
9494
val tvars = constrained(typeLambda, untpd.EmptyTree, alwaysAddTypeVars = true)._2.map(_.tpe)
9595
val P1 = tycon.appliedTo(tvars)
9696

compiler/test/dotty/tools/dotc/CompilationTests.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class CompilationTests extends ParallelTesting {
7878
) +
7979
compileFilesInDir("tests/pos-special/spec-t5545", defaultOptions) +
8080
compileFilesInDir("tests/pos-special/strawman-collections", defaultOptions) +
81-
compileFilesInDir("tests/pos-special/isInstanceOf", defaultOptions.and("-Xfatal-warnings")) +
81+
compileFilesInDir("tests/pos-special/isInstanceOf", allowDeepSubtypes.and("-Xfatal-warnings")) +
8282
compileFile("scala2-library/src/library/scala/collection/immutable/IndexedSeq.scala", defaultOptions) +
8383
compileFile("scala2-library/src/library/scala/collection/parallel/mutable/ParSetLike.scala", defaultOptions) +
8484
compileList(

0 commit comments

Comments
 (0)