summaryrefslogtreecommitdiff
path: root/test/files/run/t1500.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-7916: ScriptEngine supportSom Snytt2016-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor the ScriptEngine support to an adaptor atop the IMain API. Allow references to resolve to context attributes. (The attributes must be defined at compilation time, though they may resolve to updated values at evaluation time.) This means that attributes are not bound statically in REPL history. In particular, we forgo the trick of binding attributes named "name: Type" as typed values. Instead, an `x` bound in dynamic context is injected into the script as a dynamic selection `$ctx.x` where `ctx` performs the look-up in the script context. When a compiled script is re-evaluated, a new instance of the script class is created and defined symbols are rebound. The context stdout writer is handled with `Console.withOut`, with bytes decoded using the default charset. Compilation errors are thrown as ScriptException with the first reported error. This commit doesn't attempt dynamic selection from objects in context. Currently, script must cast.
* Revived tests that once depended on xmlAdriaan Moors2013-11-141-0/+46
| | | | | | | I was a bit overzealous in moving stuff over to scala-xml in 9c50dd5274 These were all compiler tests that accidentally touched on xml. I've tried to delicately decouple them so they can roam the scalac pastures as intended.
* Prepare removal of scala-xml, scala-parser-combinatorsAdriaan Moors2013-08-271-46/+0
| | | | | | | | | Every test deleted here has found its way to the respective repositories of scala-xml and scala-parser-combinators, where they will continue to be tested with partest. The modified tests became independent of these modules, as they should've been from the start.
* SI-7003 Partest redirects stderr to log fileSom Snytt2013-05-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some scalac output is on stderr, and it's useful to see that in the log file, especially for debugging. Adds a line filter for logs, specified as "filter: pattern" in the test source. Backslashes are made forward only when detected as paths. Test alignments: Deprecations which do not pertain to the system under test are corrected in the obvious way. When testing deprecated API, suppress warnings by deprecating the Test object. Check files are updated with useful true warnings, instead of running under -nowarn. Language feature imports as required, instead of running under -language. Language feature not required, such as casual use of postfix. Heed useful warning. Ignore broken warnings. (Rarely, -nowarn.) Inliner warnings pop up under -optimise only, so for now, just filter them out where they occur. Debug output from the test required an update.
* SI-6388 Remove deprecated items in the compiler jarSimon Ochsenreither2012-10-081-1/+1
| | | | | | | | | | Deprecations in the following files were not removed to prevent SBT from breaking: - src/compiler/scala/tools/nsc/Interpreter.scala - src/compiler/scala/tools/nsc/InterpreterLoop.scala - src/compiler/scala/tools/nsc/interpreter/ILoop.scala - src/compiler/scala/tools/nsc/interpreter/InteractiveReader.scala
* Removing more unneeded code.Paul Phillips2012-05-151-2/+2
|
* Removed a few more @deprecated members.Paul Phillips2012-04-281-1/+1
| | | | | The ones which remain I'm not removing on purpose, as I know from experience it's more trouble than it's yet worth.
* Begone t1737...Hubert Plociniczak2011-11-021-12/+12
|
* A big push to make the interpreter easier to in...Paul Phillips2010-02-031-3/+3
| | | | | | | | | | | | A big push to make the interpreter easier to instantiate without having to dodge bullets. It shouldn't have to be any harder than this: scala> new scala.tools.nsc.Interpreter().evalExpr[Int]("5*5") res0: Int = 25 ...and now it isn't. Review by community.
* new classpaths.Lukas Rytz2009-10-261-0/+2
|
* big overhaul of annotations implementation.Lukas Rytz2009-05-301-1/+1
|
* fixed #1500 and #1501Tiark Rompf2008-11-101-0/+44