aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/Main.scala
blob: 24a94d654b5817723a4a10ff0f459adad61b6c34 (plain) (tree)


















                                                                                                      

                                                                                                                   

   
/* NSC -- new Scala compiler
 * Copyright 2005-2013 LAMP/EPFL
 * @author  Martin Odersky
 */
package dotty.tools
package dotc

import core.Contexts.Context

object Main extends Driver {
  def resident(compiler: Compiler): Unit = unsupported("resident") /*loop { line =>
    val command = new CompilerCommand(line split "\\s+" toList, new Settings(scalacError))
    compiler.reporter.reset()
    new compiler.Run() compile command.files
  }*/

  override def newCompiler(): Compiler = new Compiler

  override def doCompile(compiler: Compiler, fileNames: List[String])(implicit ctx: Context): Unit = {
    if (new config.Settings.Setting.SettingDecorator(ctx.base.settings.resident).value) resident(compiler) // error
    else super.doCompile(compiler,123) // error: type mismatch
  }
}