Skip to content

Commit f9abfd5

Browse files
committed
Mark TermRefWithFixedSym as non-final.
1 parent f0c6814 commit f9abfd5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,8 +1695,9 @@ object Types {
16951695
override def computeHash = unsupported("computeHash")
16961696
}
16971697

1698-
final class TermRefWithFixedSym(prefix: Type, name: TermName, val fixedSym: TermSymbol) extends TermRef(prefix, name) with WithFixedSym
1699-
final class TypeRefWithFixedSym(prefix: Type, name: TypeName, val fixedSym: TypeSymbol) extends TypeRef(prefix, name) with WithFixedSym
1698+
// Those classes are non final as Linker extends them.
1699+
class TermRefWithFixedSym(prefix: Type, name: TermName, val fixedSym: TermSymbol) extends TermRef(prefix, name) with WithFixedSym
1700+
class TypeRefWithFixedSym(prefix: Type, name: TypeName, val fixedSym: TypeSymbol) extends TypeRef(prefix, name) with WithFixedSym
17001701

17011702
/** Assert current phase does not have erasure semantics */
17021703
private def assertUnerased()(implicit ctx: Context) =

0 commit comments

Comments
 (0)