diff options
author | Martin Odersky <odersky@gmail.com> | 2016-07-11 18:05:36 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-07-12 18:14:04 +0200 |
commit | cdebd91712b36b048233d7cf9501cc7a5bb50b31 (patch) | |
tree | 35d3ee5d8800e958640916cd0145def1f5726751 /tests/neg/i50-volatile.scala | |
parent | 1792c9e9bcff1feba7b50a24a46e1e20d8a39d9b (diff) | |
download | dotty-cdebd91712b36b048233d7cf9501cc7a5bb50b31.tar.gz dotty-cdebd91712b36b048233d7cf9501cc7a5bb50b31.tar.bz2 dotty-cdebd91712b36b048233d7cf9501cc7a5bb50b31.zip |
Allow definition of new types in refinements
Allow definition of types in refinements that do not appear
in parent type.
Diffstat (limited to 'tests/neg/i50-volatile.scala')
-rw-r--r-- | tests/neg/i50-volatile.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/neg/i50-volatile.scala b/tests/neg/i50-volatile.scala index f6fa3466d..fcfc9592b 100644 --- a/tests/neg/i50-volatile.scala +++ b/tests/neg/i50-volatile.scala @@ -3,10 +3,10 @@ class Test { class Inner } type A <: Base { - type X = String // error + type X = String // old-error } type B <: { - type X = Int // error + type X = Int // old-error } lazy val o: A & B = ??? |