TypeScript Version: 2.0.5, 2.1.4, master
Code
class C {
a(): number { return 0; }
a: number;
}
Expected behavior:
Since you can't have a method and a field with the same name, there should be a "Duplicate identifier 'a'" error, as there was in TS 1.8, and as there still is if the field comes first.
Actual behavior:
No error. The field takes precedence (.a property has type of number, is not callable).