| Index: dart/tests/try/web/incremental_compilation_update_test.dart
|
| diff --git a/dart/tests/try/web/incremental_compilation_update_test.dart b/dart/tests/try/web/incremental_compilation_update_test.dart
|
| index cf9bcb80bb4dfd91f9d2c6f1fb228f2743f3d489..66c77369fcdd1227b486e1284630cf0f03fba57b 100644
|
| --- a/dart/tests/try/web/incremental_compilation_update_test.dart
|
| +++ b/dart/tests/try/web/incremental_compilation_update_test.dart
|
| @@ -1306,6 +1306,71 @@ main() {
|
| """,
|
| const <String>['v2']),
|
| ],
|
| +
|
| + // Test that newly instantiated classes are handled correctly when there is
|
| + // more than one change.
|
| + const <ProgramResult>[
|
| + const ProgramResult(
|
| + r"""
|
| +class A {
|
| + foo() {
|
| + print('Called foo');
|
| + }
|
| +
|
| + bar() {
|
| + print('Called bar');
|
| + }
|
| +}
|
| +
|
| +class B extends A {
|
| +}
|
| +
|
| +main() {
|
| + new B().foo();
|
| +}
|
| +""",
|
| + const <String>['Called foo']),
|
| + const ProgramResult(
|
| + r"""
|
| +class A {
|
| + foo() {
|
| + print('Called foo');
|
| + }
|
| +
|
| + bar() {
|
| + print('Called bar');
|
| + }
|
| +}
|
| +
|
| +class B extends A {
|
| +}
|
| +
|
| +main() {
|
| + new B().foo();
|
| +}
|
| +""",
|
| + const <String>['Called foo']),
|
| + const ProgramResult(
|
| + r"""
|
| +class A {
|
| + foo() {
|
| + print('Called foo');
|
| + }
|
| +
|
| + bar() {
|
| + print('Called bar');
|
| + }
|
| +}
|
| +
|
| +class B extends A {
|
| +}
|
| +
|
| +main() {
|
| + new A().bar();
|
| +}
|
| +""",
|
| + const <String>['Called bar']),
|
| + ],
|
| ];
|
|
|
| void main() {
|
|
|