File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -828,7 +828,7 @@ object desugar {
828
828
val moduleName = tdef.name.toTermName
829
829
val localRef = Select (Ident (moduleName), tdef.name)
830
830
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)
832
832
val localType = tdef.withMods(Modifiers (Synthetic | Opaque ).withPrivateWithin(tdef.name))
833
833
834
834
val companions = moduleDef(ModuleDef (
Original file line number Diff line number Diff line change @@ -128,4 +128,8 @@ class TabcompleteTests extends ReplTest {
128
128
@ Test def moduleCompletion = fromInitialState { implicit s =>
129
129
assertEquals(List (" Predef" ), tabComplete(" object Foo { type T = Pre" ))
130
130
}
131
+
132
+ @ Test def i6415 = fromInitialState { implicit s =>
133
+ assertEquals(List (" Predef" ), tabComplete(" opaque type T = Pre" ))
134
+ }
131
135
}
You can’t perform that action at this time.
0 commit comments