You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
main() {
A a = new A.a1();
a.test();
}
class A {
final bool condition;
A({this.condition: true});
factory A.a1({condition}) = _A1;
test() {
if(condition == true) {
print('ok');
} else {
print('not ok but $condition');
}
}
}
class _A1 extends A {
_A1({condition: true}):
super(condition: condition);
}
What is the expected output? What do you see instead?
When compiled to javascript it prints "not ok but true" while it should print "ok" like in Dartium.
What version of the product are you using? On what operating system?
Editor: 1.3.0.release (2014-04-08)
OS: Windows 8 - amd64 (6.2)
Please provide any additional information below.
For some reason, dart2js output the main as:
main: function() {
P.print("not ok but true");
}
The text was updated successfully, but these errors were encountered:
This issue was originally filed by xavier.ha...@gmail.com
What steps will reproduce the problem?
main() {
A a = new A.a1();
a.test();
}
class A {
final bool condition;
A({this.condition: true});
factory A.a1({condition}) = _A1;
test() {
if(condition == true) {
print('ok');
} else {
print('not ok but $condition');
}
}
}
class _A1 extends A {
_A1({condition: true}):
super(condition: condition);
}
What is the expected output? What do you see instead?
When compiled to javascript it prints "not ok but true" while it should print "ok" like in Dartium.
What version of the product are you using? On what operating system?
Editor: 1.3.0.release (2014-04-08)
OS: Windows 8 - amd64 (6.2)
Please provide any additional information below.
For some reason, dart2js output the main as:
main: function() {
P.print("not ok but true");
}
The text was updated successfully, but these errors were encountered: