error on var
已回答
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?
请先登录再写评论。
Please use IntelliJ IDEA 2018.1 and set the language level to Java 10.
I am running 2018.1 and the SDK is set to java 10
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.