diff options
author | Martin Odersky <odersky@gmail.com> | 2014-12-13 14:09:27 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-12-13 14:09:27 +0100 |
commit | 291b563418011120c9fbe05a05e118a7ec28005d (patch) | |
tree | bf5a86dd05fbbf2ee6614d4c3e43e265197abe58 /test | |
parent | 7cdf3d0dc5709634825b1300d77d1a0ef01c69fa (diff) | |
download | dotty-291b563418011120c9fbe05a05e118a7ec28005d.tar.gz dotty-291b563418011120c9fbe05a05e118a7ec28005d.tar.bz2 dotty-291b563418011120c9fbe05a05e118a7ec28005d.zip |
Fix #248: Class cannot inherit from refinement types
We now check that classes do not inherit from refinement types
(unless they are an encoding of parameterized types), nor from
& or | types.
Diffstat (limited to 'test')
-rw-r--r-- | test/dotc/tests.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index 9e1d26c55..3ecf8e10e 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -107,6 +107,7 @@ class tests extends CompilerTest { @Test def neg_cycles = compileFile(negDir, "cycles", xerrors = 8) @Test def neg_boundspropagation = compileFile(negDir, "boundspropagation", xerrors = 4) @Test def neg_refinedSubtyping = compileFile(negDir, "refinedSubtyping", xerrors = 2) + @Test def neg_i0248_inherit_refined = compileFile(negDir, "i0248-inherit-refined", xerrors = 3) @Test def dotc = compileDir(dotcDir + "tools/dotc", twice)(allowDeepSubtypes) @Test def dotc_ast = compileDir(dotcDir + "tools/dotc/ast", twice) |