Skip to content

Commit 90c2963

Browse files
committed
Fix new tests after changes
1 parent 08c3e81 commit 90c2963

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler/test-resources/repl/3932

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
scala> def fun[T](x: T): List[T] |=> Int = ???
2-
def fun[T](x: T): List[T] |=> Int
1+
scala> def fun[T](x: T): given List[T] => Int = ???
2+
def fun[T](x: T): given List[T] => Int

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class DiagnosticsTest {
1818

1919
@Test def diagnosticMissingLambdaBody: Unit =
2020
code"""object Test {
21-
| Nil.map(x => x).filter(x$m1 =>$m2)
22-
|$m3}""".withSource
21+
| Nil.map(x => x).filter(x$m1 =>$m2)$m3
22+
|}""".withSource
2323
.diagnostics(m1,
24-
(m2 to m3, "expression expected", Error, Some(IllegalStartSimpleExprID)),
24+
(m2 to m2, "expression expected", Error, Some(IllegalStartSimpleExprID)),
2525
(m1 to m1, """Found: Null
2626
|Required: Boolean""".stripMargin, Error, Some(TypeMismatchID))
2727
)

0 commit comments

Comments
 (0)