Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
package ir.soheil_gh;
public class LocalVariableTypeInferenceExample2WithError {
public var test = "12";
public static void main(String[] args) {

This comment has been minimized.

Copy link
Owner Author

@soheil-ghahremani soheil-ghahremani commented Sep 12, 2019

Error:(4, 12) java: 'var' is not allowed here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment