File tree Expand file tree Collapse file tree 2 files changed +8
-17
lines changed
compiler/test/dotty/tools/dotc/interactive
language-server/test/dotty/tools/languageserver Expand file tree Collapse file tree 2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -170,20 +170,3 @@ class CustomCompletionTests extends DottyTest:
170170 assert(offset == prefix.length)
171171 assert(labels.contains(" scala.Function2" ))
172172
173- @ Test def i12465_hkt (): Unit =
174- val prefix = " ???.asInstanceOf[scala.collection.Seq]"
175- val input = prefix + " ."
176-
177- val (offset, completions0) = completions(input)
178- val labels = completions0.map(_.label)
179-
180- assert(labels.isEmpty)
181-
182- @ Test def i12465_hkt_alias (): Unit =
183- val prefix = " ???.asInstanceOf[Seq]"
184- val input = prefix + " ."
185-
186- val (offset, completions0) = completions(input)
187- val labels = completions0.map(_.label)
188-
189- assert(labels.isEmpty)
Original file line number Diff line number Diff line change @@ -887,4 +887,12 @@ class CompletionTest {
887887 )
888888 )
889889 }
890+
891+ @ Test def i12465_hkt : Unit =
892+ code """ ???.asInstanceOf[scala.collection.Seq]. ${m1}""" .withSource
893+ .completion(m1, Set ())
894+
895+ @ Test def i12465_hkt_alias : Unit =
896+ code """ ???.asInstanceOf[Seq]. ${m1}""" .withSource
897+ .completion(m1, Set ())
890898}
You can’t perform that action at this time.
0 commit comments