Skip to content

Commit 87c5ac0

Browse files
committed
Fix tests.
1 parent 1ee7934 commit 87c5ac0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/neg/i1503.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ object Test {
99

1010
def main(args: Array[String]) = {
1111
(if (cond) foo1 else bar1)() // error: Unit does not take parameters
12-
(if (cond) foo2 else bar2)(22) // error: missing arguments // error: missing arguments
12+
(if (cond) foo2 else bar2)(22) // OK after changes to eta expansion
1313
}
1414
}

tests/neg/i1716.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
object Fail {
22
def f(m: Option[Int]): Unit = {
33
m match {
4-
case x @ Some[_] => // error
4+
case x @ Some[_] => // error: unbound wildcard type
55
case _ =>
66
}
77
}
8-
Some[_] // error
8+
Some[_] // error: unbound wildcard type
9+
910
}

0 commit comments

Comments
 (0)