@@ -610,7 +610,7 @@ class CompletionTest {
610
610
code """ object Foo
611
611
|extension (foo: Foo.type) def xxxx[A]: Int = 1
612
612
|object Main { Foo.xx ${m1} } """ .withSource
613
- .completion(m1, Set ((" xxxx" , Method , " [A] => Int" )))
613
+ .completion(m1, Set ((" xxxx" , Method , " [A]: Int" )))
614
614
}
615
615
616
616
@ Test def completeExtensionMethodWithParameterAndTypeParameter : Unit = {
@@ -729,7 +729,7 @@ class CompletionTest {
729
729
|given Baz with {}
730
730
|extension [A](using bar: Bar)(a: A)(using baz: Baz) def xxxx[B]: Either[A, B] = Left(a)
731
731
|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]" )))
733
733
}
734
734
735
735
@ Test def completeExtensionMethodWithTypeBounds : Unit = {
@@ -739,7 +739,7 @@ class CompletionTest {
739
739
|extension [A >: Bar](a: A) def xxxx[B <: a.type]: Either[A, B] = Left(a)
740
740
|val foo = new Foo {}
741
741
|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]" )))
743
743
}
744
744
745
745
@ Test def completeInheritedExtensionMethod : Unit = {
0 commit comments