Created
September 12, 2019 12:26
-
-
Save soheil-ghahremani/a0d9be822e29ffb1cef78a079fa97015 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ir.soheil_gh; | |
public class LocalVariableTypeInferenceExample1WithError { | |
public static void main(String[] args) { | |
var test; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error:(6, 13) java: cannot infer type for local variable test (cannot use 'var' on variable without initializer)