| 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 1777711dc1650ecde42f703d2ac9534399b9b0b6..6ebd5737f29403d8d92a02f0bcf9dbfc972d6ff4 100644
|
| --- a/dart/tests/try/web/incremental_compilation_update_test.dart
|
| +++ b/dart/tests/try/web/incremental_compilation_update_test.dart
|
| @@ -1307,6 +1307,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() {
|
|
|