error on var

Answered

Intellij IDEA does not seem to support java 10 local variable type inference.  var name = "Larry";  errors on var.  Is there not support for java 10 yet?

3 comments

Please use IntelliJ IDEA 2018.1 and set the language level to Java 10.

0

I am running 2018.1   and the SDK is set to java 10

0

Please ensure the language level for the project and for the Modules is set to 10.

Language level is configured in multiple places, see http://stackoverflow.com/a/12900859/104891 for the screenshots.

0

Please sign in to leave a comment.