diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/wildcardInInfixType.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/wildcardInInfixType.scala b/tests/pos/wildcardInInfixType.scala new file mode 100644 index 000000000..9905762c5 --- /dev/null +++ b/tests/pos/wildcardInInfixType.scala @@ -0,0 +1,9 @@ +object wildcardInInfixType { + + val useless: _ => _ = (x: Int) => 1 + + val pointless: (_ <: Int) => _ = (x: Int) => 1 + + val answer: Int Either _ = Left(42) +} + |