Object->AnyRef change in EvalTest

This commit is contained in:
Mark Harrah 2013-03-18 09:52:57 -04:00
parent 9aa575742b
commit 6327e11a59
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package sbt
package compiler
import scala.language.reflectiveCalls
import org.scalacheck._
import Prop._
import scala.tools.nsc.reporters.StoreReporter
@ -74,7 +75,7 @@ val p = {
value(eval.eval("abs("+i+")", new EvalImports(imports.zipWithIndex, "imp"))) == math.abs(i)
private[this] def local(i: Int) = "{ class ETest(val i: Int); new ETest(" + i + ") }"
val LocalType = "Object{val i: Int}"
val LocalType = "AnyRef{val i: Int}"
private[this] def value(r: EvalResult) = r.getValue(getClass.getClassLoader)
private[this] def hasErrors(line: Int, src: String) =