Chromium Code Reviews| Index: pkg/analyzer/test/src/summary/resynthesize_test.dart |
| diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart |
| index df83138a36e0d64f82ef8c59239228ecff267cca..5c383dc91ebe8aa73ce94edf2c4c17b51b6325f3 100644 |
| --- a/pkg/analyzer/test/src/summary/resynthesize_test.dart |
| +++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart |
| @@ -1381,6 +1381,22 @@ typedef F();'''); |
| var x;'''); |
| } |
| + test_variable_getterInLib_setterInPart() { |
| + addNamedSource('/a.dart', 'part of my.lib; void set x(int _) {}'); |
| + checkLibrary('library my.lib; part "a.dart"; int get x => 42;'); |
| + } |
| + |
| + test_variable_getterInPart_setterInLib() { |
| + addNamedSource('/a.dart', 'part of my.lib; int get x => 42;'); |
| + checkLibrary('library my.lib; part "a.dart"; void set x(int _) {}'); |
| + } |
| + |
| + test_variable_getterInPart_setterInPart() { |
| + addNamedSource('/a.dart', 'part of my.lib; int get x => 42;'); |
| + addNamedSource('/b.dart', 'part of my.lib; void set x(int _) {}'); |
| + checkLibrary('library my.lib; part "a.dart"; part "b.dart";'); |
|
Paul Berry
2016/01/13 16:12:01
I'd recommend adding another test which is the sam
|
| + } |
| + |
| test_variable_implicit_type() { |
| checkLibrary('var x;'); |
| } |