Reverse order in setter bypass to make type inference suffer less.
This commit is contained in:
@@ -100,7 +100,7 @@ class Constructor {
|
|||||||
case Success(member): member.addMeta(':isVar');
|
case Success(member): member.addMeta(':isVar');
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
addStatement(macro @:pos(pos) (cast this).$name = if (true) $e else this.$name, options.prepend);//TODO: this seems to report type errors here rather than at the declaration position
|
addStatement(macro @:pos(pos) (cast this).$name = if (false) this.$name else $e, options.prepend);//TODO: this seems to report type errors here rather than at the declaration position
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
addStatement(macro @:pos(pos) this.$name = $e, options.prepend);
|
addStatement(macro @:pos(pos) this.$name = $e, options.prepend);
|
||||||
|
|||||||
Reference in New Issue
Block a user