anchor.diff:    }
   
     test_nullMember_undefined() async {
  -    await assertErrorsInCode(r'''
  +    await assertErrorsInCode(
  +        r'''
   m() {
     Null _null;
     _null.foo;
   }
  -''', [
  -      error(CompileTimeErrorCode.UNDEFINED_GETTER, 28, 3),
  -    ]);
  +''',
  +        expectedErrorsByNullability(nullable: [
  +          error(CompileTimeErrorCode.INVALID_USE_OF_NULL_VALUE, 22, 5),
  +          error(CompileTimeErrorCode.UNDEFINED_GETTER, 28, 3),
  +        ], legacy: [
  +          error(CompileTimeErrorCode.UNDEFINED_GETTER, 28, 3),
  +        ]));
     }
   
     test_object_call() async {
  
positive.code:     await assertNoErrorsInCode(r'''
  class A<E> {
    E element;
  }
  class B extends A<List> {
    m() {
      element.last;
    }
  
negative.code: ''');
    }
  }
  
  @reflectiveTest
  class UndefinedGetterWithNullSafetyTest extends PubPackageResolutionTest
      with WithNullSafetyMixin, UndefinedGetterTestCases {
    @override
    @FailingTest(issue: 'https://github.com/dart-lang/sdk/issues/42957')
    test_typeLiteral_conditionalAccess() {
      return super.test_typeLiteral_conditionalAccess();
    }
  }
  