diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-03-26 12:39:24 +0100 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-03-26 12:39:24 +0100 |
commit | c74e1325ff1514b1042c959b0b268b3c6bf8d349 (patch) | |
tree | 3ac99232469e17ff0d69113ce2ff2fbc59ab6050 /test/files/run/t8442/Test.scala | |
parent | 2af68eec522c97af14b8fad372fc3c0addf7d604 (diff) | |
parent | 8262ed2fc618d27258eb975fd401b31f1064cc3e (diff) | |
download | scala-c74e1325ff1514b1042c959b0b268b3c6bf8d349.tar.gz scala-c74e1325ff1514b1042c959b0b268b3c6bf8d349.tar.bz2 scala-c74e1325ff1514b1042c959b0b268b3c6bf8d349.zip |
Merge pull request #3655 from retronym/ticket/8442
SI-8442 Ignore stub annotation symbols in `AnnotationInfo#matches`
Diffstat (limited to 'test/files/run/t8442/Test.scala')
-rw-r--r-- | test/files/run/t8442/Test.scala | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/files/run/t8442/Test.scala b/test/files/run/t8442/Test.scala new file mode 100644 index 0000000000..ff6da4e206 --- /dev/null +++ b/test/files/run/t8442/Test.scala @@ -0,0 +1,29 @@ +import scala.tools.partest._ +import java.io.File + +object Test extends StoreReporterDirectTest { + def code = ??? + + def compileCode(code: String) = { + val classpath = List(sys.props("partest.lib"), testOutput.path) mkString sys.props("path.separator") + compileString(newCompiler("-cp", classpath, "-d", testOutput.path))(code) + } + + def app = """ + class C_2 { + def foo(b: B_1) { + b.get() + } + } + """ + + def show(): Unit = { + val tClass = new File(testOutput.path, "A_1.class") + assert(tClass.exists) + assert(tClass.delete()) + + // Expecting stub symbol warning, but no stack trace! + compileCode(app) + println(filteredInfos.mkString("\n")) + } +} |