Index: pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart |
diff --git a/pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart |
index e2cda3caf10cc15d1e730e281f3e71fc47a58f77..200fda7a5b46158cead7d67a683386e2408e5d78 100644 |
--- a/pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart |
+++ b/pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart |
@@ -56,15 +56,6 @@ void f(Derived d) { |
return new TypeMemberContributor(); |
} |
- fail_test_PrefixedIdentifier_trailingStmt_const_untyped() async { |
- // SimpleIdentifier PrefixedIdentifier ExpressionStatement |
- addTestSource('const g = "hello"; f() {g.^ int y = 0;}'); |
- await computeSuggestions(); |
- assertSuggestMethod('toString', 'Object', 'String'); |
- // fails this assertion because type of const is not properly inferred |
- assertSuggestGetter('length', 'int'); |
- } |
- |
test_ArgDefaults_method() async { |
addTestSource(''' |
class A { |
@@ -3561,6 +3552,14 @@ void main() {C.^ print("something");}'''); |
assertSuggestGetter('length', 'int'); |
} |
+ test_PrefixedIdentifier_trailingStmt_const_untyped() async { |
+ // SimpleIdentifier PrefixedIdentifier ExpressionStatement |
+ addTestSource('const g = "hello"; f() {g.^ int y = 0;}'); |
+ await computeSuggestions(); |
+ assertSuggestMethod('toString', 'Object', 'String'); |
+ assertSuggestGetter('length', 'int'); |
+ } |
+ |
test_PrefixedIdentifier_trailingStmt_field() async { |
// SimpleIdentifier PrefixedIdentifier ExpressionStatement |
addTestSource('class A {String g; f() {g.^ int y = 0;}}'); |