Support Java14 instanceof pattern matching
Closed this issue · 0 comments
marek-parfianowicz commented
Java 14 introduced pattern matching for instanceof
keyword, which allows to create a variable for the type matched, without type casting. Example:
int sum = 0; if (o instanceof Integer i) { sum += i; }
To be implemented: optional identifier after type declaration.