| Index: pkg/analyzer/test/generated/hint_code_test.dart
|
| diff --git a/pkg/analyzer/test/generated/hint_code_test.dart b/pkg/analyzer/test/generated/hint_code_test.dart
|
| index b0030895c02545ce66a3d638e30fe605639585ac..750ef781a9e8e51d160cf6b77e014eb88ff130f3 100644
|
| --- a/pkg/analyzer/test/generated/hint_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/hint_code_test.dart
|
| @@ -4,8 +4,9 @@
|
|
|
| library analyzer.test.generated.hint_code_test;
|
|
|
| +import 'package:analyzer/error/error.dart';
|
| +import 'package:analyzer/src/error/codes.dart';
|
| import 'package:analyzer/src/generated/engine.dart';
|
| -import 'package:analyzer/src/generated/error.dart';
|
| import 'package:analyzer/src/generated/parser.dart';
|
| import 'package:analyzer/src/generated/source_io.dart';
|
| import 'package:test_reflective_loader/test_reflective_loader.dart';
|
| @@ -108,10 +109,15 @@ m(x) {
|
| verify([source]);
|
| }
|
|
|
| - void test_canBeNullAfterNullAware_false_propertyAccess() {
|
| + void test_canBeNullAfterNullAware_false_null() {
|
| Source source = addSource(r'''
|
| m(x) {
|
| - x?.a?.b;
|
| + x?.a.hashCode;
|
| + x?.a.runtimeType;
|
| + x?.a.toString();
|
| + x?.b().hashCode;
|
| + x?.b().runtimeType;
|
| + x?.b().toString();
|
| }
|
| ''');
|
| computeLibrarySourceErrors(source);
|
| @@ -119,15 +125,10 @@ m(x) {
|
| verify([source]);
|
| }
|
|
|
| - void test_canBeNullAfterNullAware_false_null() {
|
| + void test_canBeNullAfterNullAware_false_propertyAccess() {
|
| Source source = addSource(r'''
|
| m(x) {
|
| - x?.a.hashCode;
|
| - x?.a.runtimeType;
|
| - x?.a.toString();
|
| - x?.b().hashCode;
|
| - x?.b().runtimeType;
|
| - x?.b().toString();
|
| + x?.a?.b;
|
| }
|
| ''');
|
| computeLibrarySourceErrors(source);
|
|
|