fix collision with name 'state' in 'console-project'

This commit is contained in:
Mark Harrah 2011-04-07 22:50:48 -04:00
parent e6cc26c10f
commit 0b4d8fb505
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ object Console
def sbt(state: State, extra: String)(implicit log: Logger)
{
val extracted = Project extract state
val bindings = ("state" -> state) :: ("extracted" -> extracted ) :: Nil
val bindings = ("currentState" -> state) :: ("extracted" -> extracted ) :: Nil
val unit = extracted.currentUnit
val compiler = Compiler.compilers(state.configuration, log).scalac
val imports = Load.getImports(unit.unit) ++ Load.importAll(bindings.map(_._1))