blob: 9d811b0634629bd3c0dfe2986737cc39f4c4cd4e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import scala.tools.partest._
object Test extends StoreReporterDirectTest {
private def compileCode(): Boolean = {
new java.io.File("util") mkdirs
val classpath = List(sys.props("partest.lib"), ".") mkString sys.props("path.separator")
log(s"classpath = $classpath")
compileString(newCompiler("-cp", classpath, "-d", testOutput.path))(packageCode)
}
def code = ???
def packageCode = """
package scala.bippy
class A { new util.Random() }
"""
def show(): Unit = {
assert(compileCode(), filteredInfos take 1 mkString "")
}
}
|