Skip to content

Commit f320e15

Browse files
authored
Backport completions are at typer (#16559)
2 parents 779a382 + 6ee32e5 commit f320e15

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

compiler/src/dotty/tools/dotc/interactive/Completion.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import dotty.tools.dotc.core.Flags._
1111
import dotty.tools.dotc.core.Names.{Name, TermName}
1212
import dotty.tools.dotc.core.NameKinds.SimpleNameKind
1313
import dotty.tools.dotc.core.NameOps._
14+
import dotty.tools.dotc.core.Phases
1415
import dotty.tools.dotc.core.Scopes._
1516
import dotty.tools.dotc.core.Symbols.{NoSymbol, Symbol, defn, newSymbol}
1617
import dotty.tools.dotc.core.StdNames.nme

compiler/test/dotty/tools/repl/TabcompleteTests.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,9 @@ class TabcompleteTests extends ReplTest {
228228
tabComplete(":d")
229229
)
230230
}
231+
232+
@Test def `i16551 typer phase for implicits` = initially {
233+
val comp = tabComplete("BigInt(1).")
234+
assertTrue(comp.distinct.nonEmpty)
235+
}
231236
}

0 commit comments

Comments
 (0)