This code should lead to three static type warnings but I get none. Assigning to x, y, or wob through a typed reference where the field is declared final should be flagged by the analyzer.
class Point {
final x, y;
Point(this.x, this.y);
}
interface Wobulator default WobulatorImpl {
Wobulator();
final wob;
}
class WobulatorImpl implements Wobulator {
var wob;
WobulatorImpl();
}
void main() {
Point p = new Point(2, 3);
p.x = 42;
p.y = 87;
Wobulator w = new Wobulator();
w.wob = 100;
}
////////////////////////////////////////////////////////////////////////////////////
Editor Version: 7937
This code should lead to three static type warnings but I get none. Assigning to x, y, or wob through a typed reference where the field is declared final should be flagged by the analyzer.
class Point { final x, y; Point(this.x, this.y); }
interface Wobulator default WobulatorImpl { Wobulator(); final wob; }
class WobulatorImpl implements Wobulator { var wob; WobulatorImpl(); }
void main() { Point p = new Point(2, 3); p.x = 42; p.y = 87; Wobulator w = new Wobulator(); w.wob = 100; } //////////////////////////////////////////////////////////////////////////////////// Editor Version: 7937