| 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 46b00be22cbb3439f3f93743ffd73a422399116c..e10a9c7c9929b55b42b8c5802d87fec237e8d7ea 100644
|
| --- a/dart/tests/try/web/incremental_compilation_update_test.dart
|
| +++ b/dart/tests/try/web/incremental_compilation_update_test.dart
|
| @@ -846,6 +846,66 @@ main() {
|
| """,
|
| const <String>['v2']),
|
| ],
|
| +
|
| + // Test that changing the supertype of a class.
|
| + const <ProgramResult>[
|
| + const ProgramResult(
|
| + r"""
|
| +class A {
|
| + m() {
|
| + print('v2');
|
| + }
|
| +}
|
| +class B extends A {
|
| + m() {
|
| + print('v1');
|
| + }
|
| +}
|
| +class C extends B {
|
| + m() {
|
| + super.m();
|
| + }
|
| +}
|
| +
|
| +var instance;
|
| +
|
| +main() {
|
| + if (instance == null) {
|
| + instance = new C();
|
| + }
|
| + instance.m();
|
| +}
|
| +""",
|
| + const <String>['v1']),
|
| + const ProgramResult(
|
| + r"""
|
| +class A {
|
| + m() {
|
| + print('v2');
|
| + }
|
| +}
|
| +class B extends A {
|
| + m() {
|
| + print('v1');
|
| + }
|
| +}
|
| +class C extends A {
|
| + m() {
|
| + super.m();
|
| + }
|
| +}
|
| +
|
| +var instance;
|
| +
|
| +main() {
|
| + if (instance == null) {
|
| + instance = new C();
|
| + }
|
| + instance.m();
|
| +}
|
| +""",
|
| + const <String>['v2']),
|
| + ],
|
| ];
|
|
|
| void main() {
|
|
|