summaryrefslogtreecommitdiff
path: root/test/files/run/t8442/Test.scala
blob: ff6da4e20645fe3fb9e3ff93ea31bf1d9844b409 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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"))
  }
}