diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t8575.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/files/run/t8575.scala b/test/files/run/t8575.scala index 6e3e57f2be..fb8f603f3e 100644 --- a/test/files/run/t8575.scala +++ b/test/files/run/t8575.scala @@ -21,13 +21,12 @@ object Test extends TypeMember { // works if replaced by type X = E[A with B with C] type X = E[F with C] - val value = new E[F with C] + def value = new E[F with C] // This call passes, since it invokes consume(E): Unit - consume(value) def consume(x: X) {} def main(args: Array[String]) { - + consume(value) } } |