diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-02-16 23:35:18 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-02-18 19:24:05 +0100 |
commit | 5aac086d63807331e380bb2d861e4e07800b1f63 (patch) | |
tree | 0846ffcc133ce47ba1355e960959295d1e6f1bc2 /tests/disabled/scalac-dependent/pos/trait-force-info.scala | |
parent | 6df672c7e7be65d7be1cd6524c610aed4f35178c (diff) | |
download | dotty-5aac086d63807331e380bb2d861e4e07800b1f63.tar.gz dotty-5aac086d63807331e380bb2d861e4e07800b1f63.tar.bz2 dotty-5aac086d63807331e380bb2d861e4e07800b1f63.zip |
Disable tests that require scala-compiler
This is necessary if we ever want to get rid of our dependency on scala-compiler
Diffstat (limited to 'tests/disabled/scalac-dependent/pos/trait-force-info.scala')
-rw-r--r-- | tests/disabled/scalac-dependent/pos/trait-force-info.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/disabled/scalac-dependent/pos/trait-force-info.scala b/tests/disabled/scalac-dependent/pos/trait-force-info.scala new file mode 100644 index 000000000..c2b33869c --- /dev/null +++ b/tests/disabled/scalac-dependent/pos/trait-force-info.scala @@ -0,0 +1,18 @@ +/** This does NOT crash unless it's in the interactive package. + */ + +package scala.tools.nsc +package interactive + +trait MyContextTrees { + val self: Global + val NoContext = self.analyzer.NoContext +} +// +// error: java.lang.AssertionError: assertion failed: trait Contexts.NoContext$ linkedModule: <none>List() +// at scala.Predef$.assert(Predef.scala:160) +// at scala.tools.nsc.symtab.classfile.ClassfileParser$innerClasses$.innerSymbol$1(ClassfileParser.scala:1211) +// at scala.tools.nsc.symtab.classfile.ClassfileParser$innerClasses$.classSymbol(ClassfileParser.scala:1223) +// at scala.tools.nsc.symtab.classfile.ClassfileParser.classNameToSymbol(ClassfileParser.scala:489) +// at scala.tools.nsc.symtab.classfile.ClassfileParser.sig2type$1(ClassfileParser.scala:757) +// at scala.tools.nsc.symtab.classfile.ClassfileParser.sig2type$1(ClassfileParser.scala:789) |