anchor.diff:    new C().futureOrT();
   }
   """);
  +    var options = env.compiler.options;
  +
  +    String typeToString(DartType type) {
  +      return type.toStructuredText(
  +          printLegacyStars: options.printLegacyStars,
  +          useLegacySubtyping: options.useLegacySubtyping);
  +    }
  +
       FunctionType getFunctionType(String name, String expectedType,
           [ClassEntity cls]) {
         FunctionType type = env.getMemberType(name, cls);
  
positive.code:           "Member $name not found${cls != null ? ' in class $cls' : ''}.");
        Expect.equals(
            expectedType,
            '${type}',
            "Unexpected type for $name"
                "${cls != null ? ' in class $cls' : ''}.");
        return type;
      }
  
  
negative.code: import 'package:compiler/src/elements/entities.dart';
  import 'package:compiler/src/elements/types.dart';
  import 'package:expect/expect.dart';
  import '../helpers/compiler_helper.dart';
  import '../helpers/type_test_helper.dart';
  
  main() {
  