Skip to content

Commit

Permalink
Fix new tests after changes
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Feb 1, 2019
1 parent f324ea5 commit 319d874
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions compiler/test-resources/repl/3932
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
scala> def fun[T](x: T): List[T] |=> Int = ???
def fun[T](x: T): List[T] |=> Int
scala> def fun[T](x: T): given List[T] => Int = ???
def fun[T](x: T): given List[T] => Int
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class DiagnosticsTest {

@Test def diagnosticMissingLambdaBody: Unit =
code"""object Test {
| Nil.map(x => x).filter(x$m1 =>$m2)
|$m3}""".withSource
| Nil.map(x => x).filter(x$m1 =>$m2)$m3
|}""".withSource
.diagnostics(m1,
(m2 to m3, "expression expected", Error, Some(IllegalStartSimpleExprID)),
(m2 to m2, "expression expected", Error, Some(IllegalStartSimpleExprID)),
(m1 to m1, """Found: Null
|Required: Boolean""".stripMargin, Error, Some(TypeMismatchID))
)
Expand Down

0 comments on commit 319d874

Please sign in to comment.