@@ -2097,7 +2097,7 @@ object Types {
2097
2097
def applyOLD (prefix : Type , designator : TermDesignator )(implicit ctx : Context ): TermRef =
2098
2098
ctx.uniqueNamedTypes.enterIfNew(prefix, designator, isTerm = true ).asInstanceOf [TermRef ]
2099
2099
2100
- def apply (prefix : Type , designator : TermSymbol )(implicit ctx : Context ): TermRef =
2100
+ def apply (prefix : Type , designator : Symbol )(implicit ctx : Context ): TermRef =
2101
2101
ctx.uniqueNamedTypes.enterIfNew(prefix, designator, isTerm = true ).asInstanceOf [TermRef ]
2102
2102
2103
2103
/** Create term ref to given initial denotation, taking the signature
@@ -2115,7 +2115,7 @@ object Types {
2115
2115
} withDenot denot
2116
2116
2117
2117
def withDenot (prefix : Type , denot : Denotation )(implicit ctx : Context ): TermRef =
2118
- apply(prefix, denot.symbol.asTerm ).withDenot(denot)
2118
+ apply(prefix, denot.symbol).withDenot(denot)
2119
2119
2120
2120
/** Create a term ref referring to given symbol with given name.
2121
2121
* This is similar to TermRef(Type, Symbol), except:
@@ -2137,7 +2137,7 @@ object Types {
2137
2137
ctx.uniqueNamedTypes.enterIfNew(prefix, desig, isTerm = false ).asInstanceOf [TypeRef ]
2138
2138
2139
2139
/** Create type ref with given prefix and name */
2140
- def apply (prefix : Type , desig : TypeSymbol )(implicit ctx : Context ): TypeRef =
2140
+ def apply (prefix : Type , desig : Symbol )(implicit ctx : Context ): TypeRef =
2141
2141
ctx.uniqueNamedTypes.enterIfNew(prefix, desig, isTerm = false ).asInstanceOf [TypeRef ]
2142
2142
2143
2143
/** Create a type ref with given name and initial denotation */
@@ -2148,7 +2148,7 @@ object Types {
2148
2148
} withDenot denot
2149
2149
2150
2150
def withDenot (prefix : Type , denot : Denotation )(implicit ctx : Context ): TypeRef =
2151
- apply(prefix, denot.symbol.asType ).withDenot(denot)
2151
+ apply(prefix, denot.symbol).withDenot(denot)
2152
2152
2153
2153
/** Create a type ref referring to either a given symbol or its name.
2154
2154
* This is similar to TypeRef(prefix, sym), except:
0 commit comments