Error:Kotlin: [Internal Error] java.lang.RuntimeException: java.lang.IllegalArgumentException: empty expression should not be here during generating Javascript code at org.jetbrains.kotlin.cli.js.K2JSCompiler.doExecute(K2JSCompiler.java:184) at org.jetbrains.kotlin.cli.js.K2JSCompiler.doExecute(K2JSCompiler.java:66) at org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:220) at org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:175) at org.jetbrains.kotlin.cli.common.CLICompiler.execAndOutputXml(CLICompiler.java:80) at org.jetbrains.kotlin.daemon.CompileServiceImpl$remoteIncrementalCompile$1.invoke(CompileServiceImpl.kt:248) at org.jetbrains.kotlin.daemon.CompileServiceImpl$remoteIncrementalCompile$1.invoke(CompileServiceImpl.kt:71) at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1$1.invoke(CompileServiceImpl.kt:422) at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1$1.invoke(CompileServiceImpl.kt:71) at org.jetbrains.kotlin.daemon.common.DummyProfiler.withMeasure(PerfUtils.kt:137) at org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:455) at org.jetbrains.kotlin.daemon.CompileServiceImpl.access$checkedCompile(CompileServiceImpl.kt:71) at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1.invoke(CompileServiceImpl.kt:421) at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1.invoke(CompileServiceImpl.kt:71) at org.jetbrains.kotlin.daemon.CompileServiceImpl.ifAlive(CompileServiceImpl.kt:540) at org.jetbrains.kotlin.daemon.CompileServiceImpl.ifAlive$default(CompileServiceImpl.kt:505) at org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:412) at org.jetbrains.kotlin.daemon.CompileServiceImpl.remoteIncrementalCompile(CompileServiceImpl.kt:245) at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalArgumentException: empty expression should not be here during generating Javascript code at com.google.dart.compiler.backend.js.ast.JsEmptyExpression.accept(JsEmptyExpression.java:34) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptWithInsertRemove(JsVisitor.kt:26) at com.google.dart.compiler.backend.js.ast.JsArrayLiteral.acceptChildren(JsArrayLiteral.java:38) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitArray(JsVisitor.kt:34) at com.google.dart.compiler.backend.js.ast.JsArrayLiteral.accept(JsArrayLiteral.java:33) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsReturn.acceptChildren(JsReturn.java:39) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitReturn(JsVisitor.kt:133) at com.google.dart.compiler.backend.js.ast.JsReturn.accept(JsReturn.java:33) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptWithInsertRemove(JsVisitor.kt:26) at com.google.dart.compiler.backend.js.ast.JsBlock.acceptChildren(JsBlock.java:57) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitBlock(JsVisitor.kt:40) at com.google.dart.compiler.backend.js.ast.JsBlock.accept(JsBlock.java:52) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsFunction.acceptChildren(JsFunction.java:81) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitFunction(JsVisitor.kt:82) at com.google.dart.compiler.backend.js.ast.JsFunction.accept(JsFunction.java:75) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsPropertyInitializer.acceptChildren(JsPropertyInitializer.java:41) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitPropertyInitializer(JsVisitor.kt:127) at org.jetbrains.kotlin.js.inline.util.collectors.PropertyCollector.visitPropertyInitializer(PropertyCollector.kt:28) at com.google.dart.compiler.backend.js.ast.JsPropertyInitializer.accept(JsPropertyInitializer.java:35) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptWithInsertRemove(JsVisitor.kt:26) at com.google.dart.compiler.backend.js.ast.JsObjectLiteral.acceptChildren(JsObjectLiteral.java:50) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitObjectLiteral(JsVisitor.kt:109) at com.google.dart.compiler.backend.js.ast.JsObjectLiteral.accept(JsObjectLiteral.java:45) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptList(JsVisitor.kt:16) at com.google.dart.compiler.backend.js.ast.JsInvocation.acceptChildren(JsInvocation.java:49) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitInvocation(JsVisitor.kt:88) at com.google.dart.compiler.backend.js.ast.JsInvocation.accept(JsInvocation.java:43) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsPropertyInitializer.acceptChildren(JsPropertyInitializer.java:41) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitPropertyInitializer(JsVisitor.kt:127) at org.jetbrains.kotlin.js.inline.util.collectors.PropertyCollector.visitPropertyInitializer(PropertyCollector.kt:28) at com.google.dart.compiler.backend.js.ast.JsPropertyInitializer.accept(JsPropertyInitializer.java:35) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptWithInsertRemove(JsVisitor.kt:26) at com.google.dart.compiler.backend.js.ast.JsObjectLiteral.acceptChildren(JsObjectLiteral.java:50) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitObjectLiteral(JsVisitor.kt:109) at com.google.dart.compiler.backend.js.ast.JsObjectLiteral.accept(JsObjectLiteral.java:45) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptList(JsVisitor.kt:16) at com.google.dart.compiler.backend.js.ast.JsInvocation.acceptChildren(JsInvocation.java:49) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitInvocation(JsVisitor.kt:88) at com.google.dart.compiler.backend.js.ast.JsInvocation.accept(JsInvocation.java:43) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsPropertyInitializer.acceptChildren(JsPropertyInitializer.java:41) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitPropertyInitializer(JsVisitor.kt:127) at org.jetbrains.kotlin.js.inline.util.collectors.PropertyCollector.visitPropertyInitializer(PropertyCollector.kt:28) at com.google.dart.compiler.backend.js.ast.JsPropertyInitializer.accept(JsPropertyInitializer.java:35) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptWithInsertRemove(JsVisitor.kt:26) at com.google.dart.compiler.backend.js.ast.JsObjectLiteral.acceptChildren(JsObjectLiteral.java:50) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitObjectLiteral(JsVisitor.kt:109) at com.google.dart.compiler.backend.js.ast.JsObjectLiteral.accept(JsObjectLiteral.java:45) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptList(JsVisitor.kt:16) at com.google.dart.compiler.backend.js.ast.JsInvocation.acceptChildren(JsInvocation.java:49) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitInvocation(JsVisitor.kt:88) at com.google.dart.compiler.backend.js.ast.JsInvocation.accept(JsInvocation.java:43) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsPropertyInitializer.acceptChildren(JsPropertyInitializer.java:41) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitPropertyInitializer(JsVisitor.kt:127) at org.jetbrains.kotlin.js.inline.util.collectors.PropertyCollector.visitPropertyInitializer(PropertyCollector.kt:28) at com.google.dart.compiler.backend.js.ast.JsPropertyInitializer.accept(JsPropertyInitializer.java:35) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptWithInsertRemove(JsVisitor.kt:26) at com.google.dart.compiler.backend.js.ast.JsObjectLiteral.acceptChildren(JsObjectLiteral.java:50) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitObjectLiteral(JsVisitor.kt:109) at com.google.dart.compiler.backend.js.ast.JsObjectLiteral.accept(JsObjectLiteral.java:45) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptList(JsVisitor.kt:16) at com.google.dart.compiler.backend.js.ast.JsInvocation.acceptChildren(JsInvocation.java:49) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitInvocation(JsVisitor.kt:88) at com.google.dart.compiler.backend.js.ast.JsInvocation.accept(JsInvocation.java:43) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsPropertyInitializer.acceptChildren(JsPropertyInitializer.java:41) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitPropertyInitializer(JsVisitor.kt:127) at org.jetbrains.kotlin.js.inline.util.collectors.PropertyCollector.visitPropertyInitializer(PropertyCollector.kt:28) at com.google.dart.compiler.backend.js.ast.JsPropertyInitializer.accept(JsPropertyInitializer.java:35) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptWithInsertRemove(JsVisitor.kt:26) at com.google.dart.compiler.backend.js.ast.JsObjectLiteral.acceptChildren(JsObjectLiteral.java:50) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitObjectLiteral(JsVisitor.kt:109) at com.google.dart.compiler.backend.js.ast.JsObjectLiteral.accept(JsObjectLiteral.java:45) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptList(JsVisitor.kt:16) at com.google.dart.compiler.backend.js.ast.JsInvocation.acceptChildren(JsInvocation.java:49) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitInvocation(JsVisitor.kt:88) at com.google.dart.compiler.backend.js.ast.JsInvocation.accept(JsInvocation.java:43) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVars$JsVar.acceptChildren(JsVars.java:90) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visit(JsVisitor.kt:151) at com.google.dart.compiler.backend.js.ast.JsVars$JsVar.accept(JsVars.java:84) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptWithInsertRemove(JsVisitor.kt:26) at com.google.dart.compiler.backend.js.ast.JsVars.acceptChildren(JsVars.java:151) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitVars(JsVisitor.kt:154) at com.google.dart.compiler.backend.js.ast.JsVars.accept(JsVars.java:146) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptWithInsertRemove(JsVisitor.kt:26) at com.google.dart.compiler.backend.js.ast.JsBlock.acceptChildren(JsBlock.java:57) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitBlock(JsVisitor.kt:40) at com.google.dart.compiler.backend.js.ast.JsBlock.accept(JsBlock.java:52) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsFunction.acceptChildren(JsFunction.java:81) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitFunction(JsVisitor.kt:82) at com.google.dart.compiler.backend.js.ast.JsFunction.accept(JsFunction.java:75) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsInvocation.acceptChildren(JsInvocation.java:48) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitInvocation(JsVisitor.kt:88) at com.google.dart.compiler.backend.js.ast.JsInvocation.accept(JsInvocation.java:43) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsExpressionStatement.acceptChildren(JsExpressionStatement.java:29) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitExpressionStatement(JsVisitor.kt:73) at com.google.dart.compiler.backend.js.ast.JsExpressionStatement.accept(JsExpressionStatement.java:24) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsVisitor.acceptWithInsertRemove(JsVisitor.kt:26) at com.google.dart.compiler.backend.js.ast.JsBlock.acceptChildren(JsBlock.java:57) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitBlock(JsVisitor.kt:40) at com.google.dart.compiler.backend.js.ast.JsBlock.accept(JsBlock.java:52) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsProgramFragment.acceptChildren(JsProgramFragment.java:30) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitProgramFragment(JsVisitor.kt:124) at com.google.dart.compiler.backend.js.ast.JsProgramFragment.accept(JsProgramFragment.java:25) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at com.google.dart.compiler.backend.js.ast.JsProgram.acceptChildren(JsProgram.java:121) at com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8) at com.google.dart.compiler.backend.js.ast.JsVisitor.visitProgram(JsVisitor.kt:121) at com.google.dart.compiler.backend.js.ast.JsProgram.accept(JsProgram.java:115) at com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11) at org.jetbrains.kotlin.js.inline.util.CollectUtilsKt.collectJsProperties(collectUtils.kt:130) at org.jetbrains.kotlin.js.inline.util.CollectUtilsKt.collectNamedFunctions(collectUtils.kt:137) at org.jetbrains.kotlin.js.inline.JsInliner.process(JsInliner.java:68) at org.jetbrains.kotlin.js.facade.K2JSTranslator.translate(K2JSTranslator.java:83) at org.jetbrains.kotlin.cli.js.K2JSCompiler.doExecute(K2JSCompiler.java:182) ... 33 more