| Index: pkg/analyzer/test/src/summary/summary_common.dart
|
| diff --git a/pkg/analyzer/test/src/summary/summary_common.dart b/pkg/analyzer/test/src/summary/summary_common.dart
|
| index 5b7ebd22174aab7925d845ceeb49d1573f39921e..94e5b5e501f91525d44707d9057f546542c3c580 100644
|
| --- a/pkg/analyzer/test/src/summary/summary_common.dart
|
| +++ b/pkg/analyzer/test/src/summary/summary_common.dart
|
| @@ -6002,6 +6002,28 @@ class C<T> {
|
| expect(variable.constExpr, isNull);
|
| }
|
|
|
| + test_field_static_final_untyped() {
|
| + if (!checkAstDerivedData) {
|
| + // The element model doesn't contain the initializer expressions needed
|
| + // for type inference. TODO(paulberry): fix.
|
| + return;
|
| + }
|
| + UnlinkedVariable variable =
|
| + serializeClassText('class C { static final x = 0; }').fields[0];
|
| + expect(variable.constExpr, isNotNull);
|
| + }
|
| +
|
| + test_field_untyped() {
|
| + if (!checkAstDerivedData) {
|
| + // The element model doesn't contain the initializer expressions needed
|
| + // for type inference. TODO(paulberry): fix.
|
| + return;
|
| + }
|
| + UnlinkedVariable variable =
|
| + serializeClassText('class C { var x = 0; }').fields[0];
|
| + expect(variable.constExpr, isNotNull);
|
| + }
|
| +
|
| test_fully_linked_references_follow_other_references() {
|
| if (skipFullyLinkedData) {
|
| return;
|
| @@ -8007,6 +8029,16 @@ var v;''';
|
| expect(variable.constExpr, isNull);
|
| }
|
|
|
| + test_variable_final_top_level_untyped() {
|
| + if (!checkAstDerivedData) {
|
| + // The element model doesn't contain the initializer expressions needed
|
| + // for type inference. TODO(paulberry): fix.
|
| + return;
|
| + }
|
| + UnlinkedVariable variable = serializeVariableText('final v = 0;');
|
| + expect(variable.constExpr, isNotNull);
|
| + }
|
| +
|
| test_variable_implicit_dynamic() {
|
| UnlinkedVariable variable = serializeVariableText('var v;');
|
| expect(variable.type, isNull);
|
|
|