Skip to content

Commit a1d0f3e

Browse files
committed
Add tests for infix types with wildcard parameters
1 parent 9e9b980 commit a1d0f3e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/wildcardInInfixType.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
object wildcardInInfixType {
2+
3+
val useless: _ => _ = (x: Int) => 1
4+
5+
val pointless: (_ <: Int) => _ = (x: Int) => 1
6+
7+
val answer: Int Either _ = Left(42)
8+
}
9+

0 commit comments

Comments
 (0)