diff options
author | Martin Odersky <odersky@gmail.com> | 2014-03-04 13:49:45 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-03-04 13:49:50 +0100 |
commit | f196e074c41f7ccde118dcf6764898a2c26fda3a (patch) | |
tree | 7427249f21c5879dff53d9dbaf1f17736944e9fb /test/dotc/tests.scala | |
parent | 340ec6150b205287e1c0f5a0422d2186c29bc086 (diff) | |
download | dotty-f196e074c41f7ccde118dcf6764898a2c26fda3a.tar.gz dotty-f196e074c41f7ccde118dcf6764898a2c26fda3a.tar.bz2 dotty-f196e074c41f7ccde118dcf6764898a2c26fda3a.zip |
Fix of #39
Two fixes:
1) Avoid the infinite recursion in checkAccessible if the accessibility check fails.
2) Make accessibility succeed for the test, and in general if the target denotation does not have a symbol.
Added original test in pos and a negative test which makes accessibility fail.
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r-- | test/dotc/tests.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index 4e7d277dd..88c39231b 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -40,6 +40,7 @@ class tests extends CompilerTest { @Test def pos_overloaded() = compileFile(posDir, "overloaded") @Test def pos_templateParents() = compileFile(posDir, "templateParents") @Test def pos_structural() = compileFile(posDir, "structural") + @Test def pos_i39 = compileFile(posDir, "i39") @Test def neg_blockescapes() = compileFile(negDir, "blockescapesNeg", xerrors = 1) @Test def neg_typedapply() = compileFile(negDir, "typedapply", xerrors = 4) @@ -49,6 +50,7 @@ class tests extends CompilerTest { @Test def neg_privates() = compileFile(negDir, "privates", xerrors = 2) @Test def neg_rootImports = compileFile(negDir, "rootImplicits", xerrors = 2) @Test def neg_templateParents() = compileFile(negDir, "templateParents", xerrors = 3) + @Test def neg_i39 = compileFile(negDir, "i39", xerrors = 1) @Test def dotc = compileDir(dotcDir + "tools/dotc") @Test def dotc_ast = compileDir(dotcDir + "tools/dotc/ast") |