Skip to content

Commit 2bcc0b0

Browse files
committed
Add tests for wildcards without types
As suggested by review.
1 parent 9da99f1 commit 2bcc0b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/pos/i903.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ object Test {
33
def test1 = {
44
val f = contains("", (_: Int))
55
val ff = contains("", ((_: Int)))
6+
val g: Int => Boolean = contains("", (_))
7+
val gg: Int => Boolean = contains("", ((_)))
68
f.apply(0)
79
// sandbox/eta.scala:4: error: type mismatch:
810
// found : Int => Int

0 commit comments

Comments
 (0)