Skip to content

Commit 5e1caf2

Browse files
committed
Fix tests
1 parent 6113a0f commit 5e1caf2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class CompletionTest {
5858

5959
// TODO: Also add tests with concrete classes, where the completion will
6060
// include the constructor proxy companion
61-
61+
6262
@Test def importCompleteClassWithPrefix: Unit = {
6363
withSources(
6464
code"""object Foo { abstract class MyClass }""",
@@ -328,7 +328,7 @@ class CompletionTest {
328328
|given Baz = new Baz {}
329329
|extension (foo: Foo.type)(using Bar, Baz) def xxxx = 1
330330
|object Main { Foo.xx${m1} }""".withSource
331-
.completion(m1, Set(("xxxx", Method, "(using x$1: Bar, x$2: Baz): Int")))
331+
.completion(m1, Set(("xxxx", Method, "(using x$2: Bar, x$3: Baz): Int")))
332332
}
333333

334334
@Test def completeExtensionMethodFromExtenionWithMultipleUsingSections: Unit = {
@@ -339,7 +339,7 @@ class CompletionTest {
339339
|given Baz = new Baz {}
340340
|extension (foo: Foo.type)(using Bar)(using Baz) def xxxx = 1
341341
|object Main { Foo.xx${m1} }""".withSource
342-
.completion(m1, Set(("xxxx", Method, "(using x$1: Bar)(using x$2: Baz): Int")))
342+
.completion(m1, Set(("xxxx", Method, "(using x$2: Bar)(using x$3: Baz): Int")))
343343
}
344344

345345
@Test def completeInheritedExtensionMethod: Unit = {

tests/neg/i10901.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
|
3939
| Test.foo("abc")(/* missing */summon[C]) failed with
4040
|
41-
| no implicit argument of type C was found for parameter x$1 of method foo in object Test
41+
| no implicit argument of type C was found for parameter x$2 of method foo in object Test

tests/neg/i6183.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
| render(42) failed with
88
|
99
| Ambiguous overload. The overloaded alternatives of method render in object Test with types
10-
| [B](b: B)(using x$1: DummyImplicit): Char
10+
| [B](b: B)(using x$2: DummyImplicit): Char
1111
| [A](a: A): String
1212
| both match arguments ((42 : Int))
1313
-- [E051] Reference Error: tests/neg/i6183.scala:7:9 -------------------------------------------------------------------
1414
7 | Test.render(42) // error
1515
| ^^^^^^^^^^^
1616
| Ambiguous overload. The overloaded alternatives of method render in object Test with types
17-
| [B](b: B)(using x$1: DummyImplicit): Char
17+
| [B](b: B)(using x$2: DummyImplicit): Char
1818
| [A](a: A): String
1919
| both match arguments ((42 : Int))
2020

0 commit comments

Comments
 (0)