File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -828,7 +828,7 @@ object desugar {
828828 val moduleName = tdef.name.toTermName
829829 val localRef = Select (Ident (moduleName), tdef.name)
830830 localRef.pushAttachment(SuppressAccessCheck , ())
831- val aliasType = cpy.TypeDef (tdef)(rhs = completeForwarder(localRef))
831+ val aliasType = cpy.TypeDef (tdef)(rhs = completeForwarder(localRef)).withSpan(tdef.span.startPos)
832832 val localType = tdef.withMods(Modifiers (Synthetic | Opaque ).withPrivateWithin(tdef.name))
833833
834834 val companions = moduleDef(ModuleDef (
Original file line number Diff line number Diff line change @@ -128,4 +128,8 @@ class TabcompleteTests extends ReplTest {
128128 @ Test def moduleCompletion = fromInitialState { implicit s =>
129129 assertEquals(List (" Predef" ), tabComplete(" object Foo { type T = Pre" ))
130130 }
131+
132+ @ Test def i6415 = fromInitialState { implicit s =>
133+ assertEquals(List (" Predef" ), tabComplete(" opaque type T = Pre" ))
134+ }
131135}
You can’t perform that action at this time.
0 commit comments