diff options
author | Martin Odersky <odersky@gmail.com> | 2015-06-11 19:09:06 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-06-19 12:11:18 +0200 |
commit | 8c28293fd52213616ed8ca3a2f600eb1e19debe0 (patch) | |
tree | a07d7d0116530ab19e71e5909433df439b57f7a2 /test | |
parent | 065a0b4c9cb34b448e070a80e4ad4af9e5ade20a (diff) | |
download | dotty-8c28293fd52213616ed8ca3a2f600eb1e19debe0.tar.gz dotty-8c28293fd52213616ed8ca3a2f600eb1e19debe0.tar.bz2 dotty-8c28293fd52213616ed8ca3a2f600eb1e19debe0.zip |
Implement checking for illegal parent trait constructor calls.
A parent trait may not be parameterized (as in T()) if the calling class does not
directly implement that trait.
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 0a6127580..ec5e34574 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -138,6 +138,7 @@ class tests extends CompilerTest { @Test def neg_instantiateAbstract = compileFile(negDir, "instantiateAbstract", xerrors = 8) @Test def neg_selfInheritance = compileFile(negDir, "selfInheritance", xerrors = 5) @Test def neg_shadowedImplicits = compileFile(negDir, "arrayclone-new", xerrors = 2) + @Test def neg_traitParamsTyper = compileFile(negDir, "traitParamsTyper", xerrors = 5) @Test def run_all = runFiles(runDir) |