anchor.diff:        error(HintCode.INVALID_USE_OF_INTERNAL_MEMBER, 42, 1),
       ]);
     }
  -}
  +
  +  test_outsidePackage_variable_prefixed() async {
  +    newFile('$fooPackageRootPath/lib/src/a.dart', content: '''
  +import 'package:meta/meta.dart';
  +@internal
  +int a = 1;
  +''');
  +
  +    await assertErrorsInCode('''
  +import 'package:foo/src/a.dart' as foo;
  +
  +int b = foo.a + 1;
  +''', [
  +      error(HintCode.INVALID_USE_OF_INTERNAL_MEMBER, 53, 1),
  +    ]);
  +  }
  +}
  
positive.code:     ]);
    }
  
    test_outsidePackage_superConstructor() async {
      newFile('$fooPackageRootPath/lib/src/a.dart', content: '''
  import 'package:meta/meta.dart';
  
negative.code:     ]);
    }
  
    test_outsidePackage_functionLiteralForInternalTypedef() async {
      newFile('$fooPackageRootPath/lib/src/a.dart', content: '''
  @internal
  typedef IntFunc = int Function(int);
  int foo(IntFunc f, int x) => f(x);
  ''');
  
      await assertNoErrorsInCode('''
  import 'package:foo/src/a.dart';
  
  int g() => foo((x) => 2*x, 7);
  ''');
    }
  
    test_outsidePackage_inCommentReference() async {
      newFile('$fooPackageRootPath/lib/src/a.dart', content: '''
  import 'package:meta/meta.dart';
  