aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/bounds.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-02-01 00:17:07 +0100
committerMartin Odersky <odersky@gmail.com>2016-02-09 09:43:07 +0100
commit1441622f094e6b149fb5e166fcc51c299f116913 (patch)
tree5c48ae0eb9ff0bd74e3353d7faa5287d1a591ba9 /tests/neg/bounds.scala
parentdefba2af7c3b49231962a6f882173bcaff914fcc (diff)
downloaddotty-1441622f094e6b149fb5e166fcc51c299f116913.tar.gz
dotty-1441622f094e6b149fb5e166fcc51c299f116913.tar.bz2
dotty-1441622f094e6b149fb5e166fcc51c299f116913.zip
Drop lines from test
The lines in question now cause an error ("cannot be instantiated...") which masks the real tests at phase PostTyper. Also adapt bugcount of hklower test
Diffstat (limited to 'tests/neg/bounds.scala')
-rw-r--r--tests/neg/bounds.scala2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/neg/bounds.scala b/tests/neg/bounds.scala
index 55eec6941..cd6b8d05c 100644
--- a/tests/neg/bounds.scala
+++ b/tests/neg/bounds.scala
@@ -1,9 +1,7 @@
object Test {
- class C[B >: String <: Int](x: B)
def g[B >: String <: Int](x: B): Int = x
def main(args: Array[String]): Unit = {
g("foo")
- new C("bar")
}
def baz[X >: Y, Y <: String](x: X, y: Y) = (x, y)