Plugin reports errors on code that compiles fine
The following code compiles and runs ok in the REPL, however the plugin reports errors in the definition of method foo2. Using IDEA IC-build 133.193 and plugin version 0.26.318
object Test { def apply(block: String => Int) = block("test") def apply( block: => Int) = block } object Foo { val Test2 = Test def foo = Test { arg => // works fine 1 } def foo2 = Test2 { arg => // reports errors: "Cannot resolve method Test2.apply" and "Missing parameter type: arg" 1 } }
Please sign in to leave a comment.
I created a ticket for this problem: http://youtrack.jetbrains.com/issue/SCL-6350
Best regards,
Alexander Podkhalyuzin.