We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2229f59 + 4dbca90 commit d735476Copy full SHA for d735476
compiler/src/dotty/tools/dotc/typer/Implicits.scala
@@ -699,7 +699,7 @@ trait ImplicitRunInfo:
699
700
def apply(t: Type) = t.dealias match
701
case t: TypeRef =>
702
- if isAnchor(t.symbol) then t else applyToUnderlying(t)
+ if t.symbol.isClass || isAnchor(t.symbol) then t else applyToUnderlying(t)
703
case t: TypeVar => apply(t.underlying)
704
case t: ParamRef => applyToUnderlying(t)
705
case t: ConstantType => apply(t.underlying)
tests/neg/i9310.scala
@@ -0,0 +1,5 @@
1
+//AE-d101cfe6d25117a51897609e673f6c8e74d31e6e
2
+val foo @ this = 0
3
+class Foo {
4
+ foo { } // error
5
+}
0 commit comments