blob: e289f4dd246095367b5201d0a9fde679201bb605 [file] [log] [blame]
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that classes referenced from a signature of a tear-off closure
// are emitted.
@MirrorsUsed(targets: 'C', symbols: 'A')
import 'dart:mirrors';
import 'package:expect/expect.dart';
class A {}
class C {
A foo() {}
}
main() {
Expect.equals("ClassMirror on 'A'",
reflect(new C().foo).function.returnType.toString());
}