diff options
author | Martin Odersky <odersky@gmail.com> | 2015-07-02 14:02:25 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-07-02 14:02:42 +0200 |
commit | 983875084b103f9d46749372c750ff71bf139181 (patch) | |
tree | b4ba8c9474506572b5100e29591c824b639fb693 /tests/neg | |
parent | 3512840ca6389898fa38c86282dd4c6671ba6863 (diff) | |
download | dotty-983875084b103f9d46749372c750ff71bf139181.tar.gz dotty-983875084b103f9d46749372c750ff71bf139181.tar.bz2 dotty-983875084b103f9d46749372c750ff71bf139181.zip |
Check final and sealed conditions
So far no error was raised for illegal inheritance
from final or sealed classes.
Diffstat (limited to 'tests/neg')
-rw-r--r-- | tests/neg/final-sealed.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/neg/final-sealed.scala b/tests/neg/final-sealed.scala new file mode 100644 index 000000000..017afd63b --- /dev/null +++ b/tests/neg/final-sealed.scala @@ -0,0 +1,4 @@ +final class A +class B extends A +class C extends Option[Int] + |