Skip to content

Commit a8b794c

Browse files
committed
Revert "Fix underlyingClassRef for hk types"
This reverts commit 0dcb5e8.
1 parent c532d3e commit a8b794c

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,8 +1166,7 @@ object Types {
11661166
else if (tp.symbol.isAliasType) tp.underlying.underlyingClassRef(refinementOK)
11671167
else NoType
11681168
case tp: AppliedType =>
1169-
if (tp.tycon.isLambdaSub) NoType
1170-
else tp.superType.underlyingClassRef(refinementOK)
1169+
tp.superType.underlyingClassRef(refinementOK)
11711170
case tp: AnnotatedType =>
11721171
tp.underlying.underlyingClassRef(refinementOK)
11731172
case tp: RefinedType =>

tests/neg/alloc-abstract.scala

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/neg/parser-stability-21.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
class x0[x1[]] // error
2-
extends x1[
2+
extends x1[ // error
33
// error

0 commit comments

Comments
 (0)