Skip to content

Commit 1a192fa

Browse files
Wip
1 parent 60458e2 commit 1a192fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ class PCPCheckAndHeal(@constructorOnly ictx: Context) extends TreeMapWithStages(
152152
// TODO move logic to levelOK
153153
val a = //tp.isInstanceOf[ThisType] ||
154154
tp.isInstanceOf[ThisType] || // heal references to `this.type`
155-
(sym.isType && sym.is(Param)) // heal references of type parameters
156-
// !sym.maybeOwner.isType
155+
(sym.isType && sym.is(Param)) || // heal references of type parameters
156+
!sym.maybeOwner.isType
157157
// println("===============")
158158
// println(a)
159159
// println()

0 commit comments

Comments
 (0)