aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i2086b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/i2086b.scala')
-rw-r--r--tests/neg/i2086b.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/neg/i2086b.scala b/tests/neg/i2086b.scala
new file mode 100644
index 000000000..0a5e296fd
--- /dev/null
+++ b/tests/neg/i2086b.scala
@@ -0,0 +1,5 @@
+
+object Test { // error: Test cannot be instantiated since it has a member type Bound with possibly conflicting bounds [Left, Right] => Left <: ... <: [Left, Right] => Right
+ type Bound[Left, Right] >: Left <: Right
+ type Foo = Bound[Any, Nothing]
+}