LVTI diagnostics anomaly?
sja at devoxx.com
Tue Sep 19 16:30:56 UTC 2017
The LVTI diagnostics error messages have (according to me) an inconsistency.
examples/LocalRedundantType.java:31: warning: Redundant type for local
variable (replace explicit type with 'var'). String s = ""; ^ 1 warning
The above makes a suggestion to replace the explicit type with 'var', which
However, VarNotAllowedHere.java mentions that the above
var s = "";
is not allowed, which confuses me.
examples/VarNotAllowedHere.java:29: error: 'var' is not allowed here var s
= ""; ^ 1 error
Hopefully this helps?
More information about the amber-dev