Skip to content

Commit faa8a55

Browse files
committed
try different approach
1 parent 47a26a2 commit faa8a55

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala

+3-5
Original file line numberDiff line numberDiff line change
@@ -1826,11 +1826,9 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
18261826
def termSymbol: Symbol = self.termSymbol
18271827
def isSingleton: Boolean = self.isSingleton
18281828
def memberType(member: Symbol): TypeRepr =
1829-
// we use thisType to avoid resolving otherwise unstable prefixes into Nothing
1830-
val classSymbol = self.classSymbol
1831-
member.info
1832-
.asSeenFrom(classSymbol.thisType, member.owner)
1833-
.substThis(classSymbol.asClass, self) // and we remove the previously added This(_) for compatibility
1829+
// we replace thisTypes here to avoid resolving otherwise unstable prefixes into Nothing
1830+
member.info.substThis(self.classSymbol.asClass, self)
1831+
.asSeenFrom(self, member.owner)
18341832

18351833
def baseClasses: List[Symbol] = self.baseClasses
18361834
def baseType(cls: Symbol): TypeRepr = self.baseType(cls)

0 commit comments

Comments
 (0)