Skip to content

Commit a8e98cf

Browse files
committed
Update syntax in CompletionTest
Tests no longer pass as a result
1 parent fd4b721 commit a8e98cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

language-server/test/dotty/tools/languageserver/CompletionTest.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ class CompletionTest {
610610
code"""object Foo
611611
|extension (foo: Foo.type) def xxxx[A]: Int = 1
612612
|object Main { Foo.xx${m1} }""".withSource
613-
.completion(m1, Set(("xxxx", Method, "[A] => Int")))
613+
.completion(m1, Set(("xxxx", Method, "[A]: Int")))
614614
}
615615

616616
@Test def completeExtensionMethodWithParameterAndTypeParameter: Unit = {
@@ -729,7 +729,7 @@ class CompletionTest {
729729
|given Baz with {}
730730
|extension [A](using bar: Bar)(a: A)(using baz: Baz) def xxxx[B]: Either[A, B] = Left(a)
731731
|object Main { 123.xx${m1} }""".withSource
732-
.completion(m1, Set(("xxxx", Method, "(using baz: Baz): [B] => Either[Int, B]")))
732+
.completion(m1, Set(("xxxx", Method, "(using baz: Baz)[B]: Either[Int, B]")))
733733
}
734734

735735
@Test def completeExtensionMethodWithTypeBounds: Unit = {
@@ -739,7 +739,7 @@ class CompletionTest {
739739
|extension [A >: Bar](a: A) def xxxx[B <: a.type]: Either[A, B] = Left(a)
740740
|val foo = new Foo {}
741741
|object Main { foo.xx${m1} }""".withSource
742-
.completion(m1, Set(("xxxx", Method, "[B <: (foo : Foo)] => Either[Foo, B]")))
742+
.completion(m1, Set(("xxxx", Method, "[B <: (foo : Foo)]: Either[Foo, B]")))
743743
}
744744

745745
@Test def completeInheritedExtensionMethod: Unit = {

0 commit comments

Comments
 (0)