LVTI diagnostics anomaly?

Stephan Janssen sja at
Tue Sep 19 16:30:56 UTC 2017


The LVTI diagnostics error messages have (according to me) an inconsistency.

examples/ 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
is great.

However, mentions that the above

var s = "";

is not allowed, which confuses me.

examples/ error: 'var' is not allowed here var s
= ""; ^ 1 error

Hopefully this helps?



More information about the amber-dev mailing list