| 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 419171146939a2f47999bb687935779de9dc885e..ad5b39f079bb0a0018e18646dffea24bcb8f532a 100644
|
| --- a/dart/tests/try/web/incremental_compilation_update_test.dart
|
| +++ b/dart/tests/try/web/incremental_compilation_update_test.dart
|
| @@ -407,6 +407,60 @@ main() {
|
| """,
|
| const <String> ['v2']),
|
| ],
|
| +
|
| + // Test that a newly instantiated class is handled.
|
| + const <ProgramResult>[
|
| + const ProgramResult(
|
| + """
|
| +class A {
|
| + m() {
|
| + print('Called A.m');
|
| + }
|
| +}
|
| +
|
| +class B {
|
| + m() {
|
| + print('Called B.m');
|
| + }
|
| +}
|
| +
|
| +var instance;
|
| +main() {
|
| + if (instance == null) {
|
| + instance = new A();
|
| +// } else {
|
| +// instance = new B();
|
| + }
|
| + instance.m();
|
| +}
|
| +""",
|
| + const <String>['Called A.m']),
|
| + const ProgramResult(
|
| + """
|
| +class A {
|
| + m() {
|
| + print('Called A.m');
|
| + }
|
| +}
|
| +
|
| +class B {
|
| + m() {
|
| + print('Called B.m');
|
| + }
|
| +}
|
| +
|
| +var instance;
|
| +main() {
|
| + if (instance == null) {
|
| + instance = new A();
|
| + } else {
|
| + instance = new B();
|
| + }
|
| + instance.m();
|
| +}
|
| +""",
|
| + const <String>['Called B.m']),
|
| + ],
|
| ];
|
|
|
| void main() {
|
|
|