anchor.diff:              period: . @33
               identifier: SimpleIdentifier
                 token: foo @34
  -              staticElement: a.dart::@function::foo
  +              staticElement: package:test/a.dart::@function::foo
                 staticType: dynamic Function()
  -            staticElement: a.dart::@function::foo
  +            staticElement: package:test/a.dart::@function::foo
               staticType: dynamic Function()
       accessors
         synthetic static get V @-1
  
positive.code:     checkElementText(library, r'''
  library
    imports
      a.dart
    definingUnit
      topLevelVariables
        static const v @23
  
negative.code: 
    test_instanceInference_operator_equal_legacy_from_legacy() async {
      featureSet = FeatureSets.language_2_9;
      addLibrarySource('$testPackageLibPath/legacy.dart', r'''
  // @dart = 2.7
  class LegacyDefault {
    bool operator==(other) => false;
  