Community
Participate
Working Groups
3.4m2 On following test case, errors are not reported in the same way: (1) type mismatch is reported against variable declaration ('i' part) (2) type mismatch is reported against initialization expression public class X { int i = "aaa"; //1 { i = "bbb"; //2 } } It feels (2) is more appropriate. Variable declarations should be fixed to report the error against the expression instead.
The problem is only with fields indeed. Aligning the title.
Created attachment 81153 [details] Fix + test cases
Kent, would you please review this one?
Released for 3.4 M4.
Verified for 3.4M4 using build I20071210-1800.