aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorClemens Winter <clemenswinter1@gmail.com>2016-07-25 16:08:50 +0200
committerClemens Winter <clemenswinter1@gmail.com>2016-08-01 14:38:45 +0200
commita1d0f3e55afc52457e9e8987d35ef04c04ac0807 (patch)
treebfb29e6f24c9d2698b8c9656c1c6b926c796de46 /tests/pos
parent9e9b9807b0f272ef586a5a92e6fc87de46c6da9d (diff)
downloaddotty-a1d0f3e55afc52457e9e8987d35ef04c04ac0807.tar.gz
dotty-a1d0f3e55afc52457e9e8987d35ef04c04ac0807.tar.bz2
dotty-a1d0f3e55afc52457e9e8987d35ef04c04ac0807.zip
Add tests for infix types with wildcard parameters
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/wildcardInInfixType.scala9
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)
+}
+