void () { var a = 1; <error descr="'var' is not allowed in a compound declaration">var b = 2</error>, <error descr="'var' is not allowed in a compound declaration">c;</error> <error descr="'var' is not allowed as an element type of an array">var</error> d[] = new int[4]; var d1 = new int[] {4}; var d2 = new int[4]; <error descr="Cannot infer type: 'var' on variable without initializer">var</error> e; var f = <error descr="Array initializer is not allowed here">{ 6 }</error>; var g = (<error descr="Cannot infer type for 'g', it is used in its own variable initializer">g</error> = 7); var x = (<error descr="Cannot infer type for 'x', it is used in its own variable initializer">x</error> = 1) + 1; var y = new Object[] {<error descr="Cannot infer type for 'y', it is used in its own variable initializer">y</error> = null}; var z = baz(<error descr="Cannot infer type for 'z', it is used in its own variable initializer">z</error> = 1); }