| 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 e10a9c7c9929b55b42b8c5802d87fec237e8d7ea..5a8d37136bd1933c82395cc00fdb6f04df3954da 100644
|
| --- a/dart/tests/try/web/incremental_compilation_update_test.dart
|
| +++ b/dart/tests/try/web/incremental_compilation_update_test.dart
|
| @@ -906,6 +906,59 @@ main() {
|
| """,
|
| const <String>['v2']),
|
| ],
|
| +
|
| + // Test adding a field to a class works.
|
| + const <ProgramResult>[
|
| + const ProgramResult(
|
| + r"""
|
| +class A {
|
| +}
|
| +
|
| +var instance;
|
| +
|
| +main() {
|
| + if (instance == null) {
|
| + instance = new A();
|
| + }
|
| + try {
|
| + instance.x = 'v2';
|
| + } catch(e) {
|
| + print('setter threw');
|
| + }
|
| + try {
|
| + print(instance.x);
|
| + } catch (e) {
|
| + print('getter threw');
|
| + }
|
| +}
|
| +""",
|
| + const <String>['setter threw', 'getter threw']),
|
| + const ProgramResult(
|
| + r"""
|
| +class A {
|
| + var x;
|
| +}
|
| +
|
| +var instance;
|
| +
|
| +main() {
|
| + if (instance == null) {
|
| + instance = new A();
|
| + }
|
| + try {
|
| + instance.x = 'v2';
|
| + } catch(e) {
|
| + print('setter threw');
|
| + }
|
| + try {
|
| + print(instance.x);
|
| + } catch (e) {
|
| + print('getter threw');
|
| + }
|
| +}
|
| +""",
|
| + const <String>['v2']),
|
| + ],
|
| ];
|
|
|
| void main() {
|
|
|