aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/bounds.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-12-30 16:12:38 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-01-18 16:49:16 +0100
commit3c29bbe7953f31f35dd404577cd04b4de95f74bb (patch)
tree3b7bb3d592856571047e82a5949e36f368d88dff /tests/neg/bounds.scala
parent73815420c3ee22f8b0209bc9d915dad8b1559b9a (diff)
downloaddotty-3c29bbe7953f31f35dd404577cd04b4de95f74bb.tar.gz
dotty-3c29bbe7953f31f35dd404577cd04b4de95f74bb.tar.bz2
dotty-3c29bbe7953f31f35dd404577cd04b4de95f74bb.zip
Adapt and add tests
New test that exhibited the problem is ski.scala. Previously this did not fail with a bounds violation.
Diffstat (limited to 'tests/neg/bounds.scala')
-rw-r--r--tests/neg/bounds.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/neg/bounds.scala b/tests/neg/bounds.scala
index 8d2cd8259..55eec6941 100644
--- a/tests/neg/bounds.scala
+++ b/tests/neg/bounds.scala
@@ -5,4 +5,8 @@ object Test {
g("foo")
new C("bar")
}
+ def baz[X >: Y, Y <: String](x: X, y: Y) = (x, y)
+
+ baz[Int, String](1, "abc")
+
}