Skip to content

Commit dfbe8d4

Browse files
committed
Fix touchHKGadt
1 parent 7cda5b5 commit dfbe8d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/core/TypeComparer.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
6666

6767
private def touchHKGadt[T](body: => T): T =
6868
val savedHKGADTtouched = HKGADTtouched
69+
HKGADTtouched = true
6970
val res = body
7071
HKGADTtouched = savedHKGADTtouched
7172
res

0 commit comments

Comments
 (0)