Skip to content

Commit

Permalink
Mark TermRefWithFixedSym as non-final.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkDimius committed Jan 4, 2016
1 parent f0c6814 commit f9abfd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dotty/tools/dotc/core/Types.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1695,8 +1695,9 @@ object Types {
override def computeHash = unsupported("computeHash")
}

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

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

0 comments on commit f9abfd5

Please sign in to comment.