diff options
author | Paul Phillips <paulp@improving.org> | 2011-01-19 03:53:44 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-01-19 03:53:44 +0000 |
commit | d6816e01433d88b474bbd0a7290bdc96890b9f37 (patch) | |
tree | 854cbf689ea640d7ada202bdfc646515b253ffb6 /test/pending/pos/t2173.scala | |
parent | 5d8c6c898aa4031c69f9ef0f0dbe8a82e51f793e (diff) | |
download | scala-d6816e01433d88b474bbd0a7290bdc96890b9f37.tar.gz scala-d6816e01433d88b474bbd0a7290bdc96890b9f37.tar.bz2 scala-d6816e01433d88b474bbd0a7290bdc96890b9f37.zip |
Moved and removed a bunch of tests from pending.
Diffstat (limited to 'test/pending/pos/t2173.scala')
-rw-r--r-- | test/pending/pos/t2173.scala | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/test/pending/pos/t2173.scala b/test/pending/pos/t2173.scala index 9a9a2edce4..bbcca39826 100644 --- a/test/pending/pos/t2173.scala +++ b/test/pending/pos/t2173.scala @@ -1,17 +1,12 @@ - - -This (somewhat convoluted) code fails to compile - -class A[+U>:Null] { - - type R[+X>:Null] = X type O[+X] = A[R[X]] - +class A[+U >: Null] { + type R[+X >: Null] = X + type O[+X] = A[R[X]] } -with the following error: - -type arguments [A.this.R[X]] do not conform to class A's type parameter bounds [+U >: Null] - -However, because type R[+X>:Null] is identical to X, it should carry X bounds and R[X] lower bound should be known to be X's lower bound, i.e. Null. - -The same problem occurs with upper bounds. +// with the following error: +// +// type arguments [A.this.R[X]] do not conform to class A's type parameter bounds [+U >: Null] +// +// However, because type R[+X>:Null] is identical to X, it should carry X bounds and R[X] lower bound should be known to be X's lower bound, i.e. Null. +// +// The same problem occurs with upper bounds. |