aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2016-08-01 18:36:43 +0200
committerGitHub <noreply@github.com>2016-08-01 18:36:43 +0200
commit01bd9482d6d1565bfeb17526bed836f0feaeb0d1 (patch)
tree9e611bf2a1af867f20d14c81b1985eb20faef3b8 /tests/pos
parent765aecbe3ca4e05c987dde4e868dca08c7585666 (diff)
parenta1d0f3e55afc52457e9e8987d35ef04c04ac0807 (diff)
downloaddotty-01bd9482d6d1565bfeb17526bed836f0feaeb0d1.tar.gz
dotty-01bd9482d6d1565bfeb17526bed836f0feaeb0d1.tar.bz2
dotty-01bd9482d6d1565bfeb17526bed836f0feaeb0d1.zip
Merge pull request #1431 from cswinter/wip-unboundwildcard
Fix #1396, #1403: Properly handle unbound wildcard types
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)
+}
+