We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ee7934 commit 87c5ac0Copy full SHA for 87c5ac0
tests/neg/i1503.scala
@@ -9,6 +9,6 @@ object Test {
9
10
def main(args: Array[String]) = {
11
(if (cond) foo1 else bar1)() // error: Unit does not take parameters
12
- (if (cond) foo2 else bar2)(22) // error: missing arguments // error: missing arguments
+ (if (cond) foo2 else bar2)(22) // OK after changes to eta expansion
13
}
14
tests/neg/i1716.scala
@@ -1,9 +1,10 @@
1
object Fail {
2
def f(m: Option[Int]): Unit = {
3
m match {
4
- case x @ Some[_] => // error
+ case x @ Some[_] => // error: unbound wildcard type
5
case _ =>
6
7
8
- Some[_] // error
+ Some[_] // error: unbound wildcard type
+
0 commit comments