| Index: pkg/dev_compiler/lib/src/compiler/nullable_type_inference.dart
|
| diff --git a/pkg/dev_compiler/lib/src/compiler/nullable_type_inference.dart b/pkg/dev_compiler/lib/src/compiler/nullable_type_inference.dart
|
| index 796811370f0062a4597812705ac9013670f8c09c..49bf1caf931c9affa190b7097dd87e4e03e6776c 100644
|
| --- a/pkg/dev_compiler/lib/src/compiler/nullable_type_inference.dart
|
| +++ b/pkg/dev_compiler/lib/src/compiler/nullable_type_inference.dart
|
| @@ -186,7 +186,7 @@ abstract class NullableTypeInference {
|
| }
|
| }
|
|
|
| - if (e?.name == 'identical' && identical(e.library, dartCoreLibrary)) {
|
| + if (e != null && e.name == 'identical' && e.library.isDartCore) {
|
| return false;
|
| }
|
| }
|
|
|