diff options
author | Martin Odersky <odersky@gmail.com> | 2014-08-08 21:37:49 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-08-08 21:38:17 +0200 |
commit | 19b6a04486a4f9a2a7803d40d7ef6199cdeaf31c (patch) | |
tree | a55e634795d79d084310d5aa533751d91dfc78fb /tests | |
parent | 058729ceac3354a2cc34490b528e76afb09ee0ce (diff) | |
download | dotty-19b6a04486a4f9a2a7803d40d7ef6199cdeaf31c.tar.gz dotty-19b6a04486a4f9a2a7803d40d7ef6199cdeaf31c.tar.bz2 dotty-19b6a04486a4f9a2a7803d40d7ef6199cdeaf31c.zip |
Re-enabled checkbounds tests
Now that F-bunded types are treated more robustly, we can check bounds for
non-emptyness during Typer.
This unvealed one wrong test (wonder how that passed scalac?), which got
moved to neg.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/neg/t1279a.scala (renamed from tests/pos/t1279a.scala) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pos/t1279a.scala b/tests/neg/t1279a.scala index 18b1e53f4..6d768d435 100644 --- a/tests/pos/t1279a.scala +++ b/tests/neg/t1279a.scala @@ -1,10 +1,10 @@ // covariant linked list abstract class M { - self => + self: M => type T final type selfType = M {type T <: self.T} - type actualSelfType >: self.type <: selfType + type actualSelfType >: self.type <: selfType // this no longer compiles because self.type is not a subtype of selfType def next: selfType |