crayon
crayon copied to clipboard
Arguments need more compile-time verification enforcement
Constructors: using 'this' keyword in base constructor args or in constructor default values should cause an error
constructor(arg = this.field1) { }
<-- Bad!
constructor() : base(this.field2) { }
<-- Also Bad!
All function types: Must verify that optional arguments come at the end of the argument list.