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 972f6d5 + 6390e9a commit a662424Copy full SHA for a662424
compiler/src/dotty/tools/dotc/typer/Namer.scala
@@ -909,9 +909,9 @@ class Namer { typer: Typer =>
909
// the parent types are elaborated.
910
index(constr)
911
annotate(constr :: params)
912
- symbolOfTree(constr).ensureCompleted()
913
914
indexAndAnnotate(rest)(inClassContext(selfInfo))
+ symbolOfTree(constr).ensureCompleted()
915
916
val parentTypes = ensureFirstIsClass(parents.map(checkedParentType(_)))
917
val parentRefs = ctx.normalizeToClassRefs(parentTypes, cls, decls)
tests/pos/i2949.scala
@@ -0,0 +1,3 @@
1
+class Foo(a: Foo#A) {
2
+ type A = Int
3
+}
0 commit comments