Sign in
dart
/
sdk.git
/
c612cd31c1510262dea2719b0629dd82f8606881
/
.
/
tests
/
compiler
/
dart2js
/
cps_ir
/
input
/
constructor_4.dart
blob: 5f148542df02d44e5dd607d8b3ed8767ddf517f4 [
file
] [
log
] [
blame
]
class
Base0
{
Base0
()
{
print
(
'Base0'
);
}
}
class
Base
extends
Base0
{
var
x
;
Base
(
x1
)
:
x
=
(()
=>
++
x1
)
{
print
(
x1
);
// use boxed x1
}
}
class
Sub
extends
Base
{
var
y
;
Sub
(
x
,
this
.
y
)
:
super
(
x
)
{
print
(
x
);
}
}
main
()
{
print
(
new
Sub
(
1
,
2
).
x
);
}