Fix java 8 repl tests

This commit is contained in:
Ilya Chernikov
2017-02-08 09:15:47 +01:00
parent b9469a9308
commit 1032f0d39c
@@ -134,7 +134,8 @@ class ReplCompilerJava8Test : TestCase() {
private fun runTest(configuration: CompilerConfiguration): ReplCompileResult {
val replCompiler = GenericReplCompiler(disposable!!, StandardScriptDefinition, configuration, PrintingMessageCollector(System.out, MessageRenderer.WITHOUT_PATHS, false))
val state = replCompiler.createState()
return replCompiler.compile(ReplCodeLine(0, script))
return replCompiler.compile(state, ReplCodeLine(0, 0, script))
}
}