vert-x / mod-lang-scala

Vert.x 2.x is deprecated - use instead
https://github.com/vert-x3/vertx-lang-scala
Apache License 2.0
77 stars 29 forks source link

Script compilation fails with Scala 2.11 #171

Closed galderz closed 10 years ago

galderz commented 10 years ago

Script compilation fails with Scala 2.11:

/Users/g/Go/demos/vertx-examples.git/src/raw/scala/echo/EchoClient.scala:17: error: expected class or object definition
vertx.createNetClient.connect(8080, "localhost", { asyncResult: AsyncResult[NetSocket] =>
^

The issue is related to how the variables are bound in the Scala interpreter when running as quiet. Instead of NamedParamClass, NamedParam was being used which works fine with Scala 2.10.

A workaround is to enable verbose compilation via -Dvertx.scala.interpreter.verbose=true

galderz commented 10 years ago

Fixed in both 1.0.x and master.