aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Main.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-02-14 10:39:58 +0100
committerMartin Odersky <odersky@gmail.com>2016-02-17 18:39:35 +0100
commit46ad05fe0bbb23ab77013f27d68926d2daed3f2b (patch)
tree3231b73cb8ec10534f01a86e18df07d219da2f9f /src/dotty/tools/dotc/Main.scala
parent6ecdc8a69db1a808269b1c288284a4a430ce865e (diff)
downloaddotty-46ad05fe0bbb23ab77013f27d68926d2daed3f2b.tar.gz
dotty-46ad05fe0bbb23ab77013f27d68926d2daed3f2b.tar.bz2
dotty-46ad05fe0bbb23ab77013f27d68926d2daed3f2b.zip
newCompiler now takes a context parameter
Makes side-effecting initialization of interpreter unnecessary.
Diffstat (limited to 'src/dotty/tools/dotc/Main.scala')
-rw-r--r--src/dotty/tools/dotc/Main.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/Main.scala b/src/dotty/tools/dotc/Main.scala
index 699a57234..6c473d8bb 100644
--- a/src/dotty/tools/dotc/Main.scala
+++ b/src/dotty/tools/dotc/Main.scala
@@ -2,10 +2,9 @@ package dotty.tools
package dotc
import core.Contexts.Context
-import reporting.Reporter
/* To do:
*/
object Main extends Driver {
- override def newCompiler(): Compiler = new Compiler
+ override def newCompiler(implicit ctx: Context): Compiler = new Compiler
}