typedef Size = {width:Float}
class Parent {
public function onResize(size:Size):Void {}
}
class Main extends Parent {
static function main() {}
// Field onResize overrides parent class with different or incomplete type
// error: { width : Int } should be Size
override function onResize(size) { // works with Size type hint
if (size.width == 0) {}
}
}