diff options
author | Clemens Winter <clemenswinter1@gmail.com> | 2016-07-25 16:08:50 +0200 |
---|---|---|
committer | Clemens Winter <clemenswinter1@gmail.com> | 2016-08-01 14:38:45 +0200 |
commit | a1d0f3e55afc52457e9e8987d35ef04c04ac0807 (patch) | |
tree | bfb29e6f24c9d2698b8c9656c1c6b926c796de46 | |
parent | 9e9b9807b0f272ef586a5a92e6fc87de46c6da9d (diff) | |
download | dotty-a1d0f3e55afc52457e9e8987d35ef04c04ac0807.tar.gz dotty-a1d0f3e55afc52457e9e8987d35ef04c04ac0807.tar.bz2 dotty-a1d0f3e55afc52457e9e8987d35ef04c04ac0807.zip |
Add tests for infix types with wildcard parameters
-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) +} + |