We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This issue was originally filed by @simonpai
SDK: 1.5.8
test.dart
library test; import 'dart:html'; void main() { document.body.scrollLeft = 0; }
Under checked mode this will be compiled to
main: function() { var t1 = document.body; t1.toString; H.voidTypeCheck(t1.scrollLeft = C.JSNumber_methods.toInt$0(C.JSInt_methods.roundToDouble$0(0))); }
and breaks the app due to the incorrect voidTypeCheck.
The text was updated successfully, but these errors were encountered:
cc @karlklose. Added Area-Dart2JS, Triaged labels.
Sorry, something went wrong.
Set owner to @karlklose. Added Accepted label.
Added Started label.
Fixed in r38925.
This was not a dart2js issue: the problem was a void typed setter that actually returned a value.
The same happens here (and it is expected to happen): void set i(v) => 42;
void main() { i = 42; }
Added Fixed label.
karlklose
No branches or pull requests
This issue was originally filed by @simonpai
SDK: 1.5.8
test.dart
library test;
import 'dart:html';
void main() {
document.body.scrollLeft = 0;
}
Under checked mode this will be compiled to
main: function() {
var t1 = document.body;
t1.toString;
H.voidTypeCheck(t1.scrollLeft = C.JSNumber_methods.toInt$0(C.JSInt_methods.roundToDouble$0(0)));
}
and breaks the app due to the incorrect voidTypeCheck.
The text was updated successfully, but these errors were encountered: