| Index: tests/lib/mirrors/eval_lazy_compile_test.dart
|
| diff --git a/tests/lib/mirrors/runtime_type_test.dart b/tests/lib/mirrors/eval_lazy_compile_test.dart
|
| similarity index 56%
|
| copy from tests/lib/mirrors/runtime_type_test.dart
|
| copy to tests/lib/mirrors/eval_lazy_compile_test.dart
|
| index fd446d32b0b8db6da48163ebc0020d62f4c831db..5c371be24f92e77cd5c526b916096ff5b8bf6504 100644
|
| --- a/tests/lib/mirrors/runtime_type_test.dart
|
| +++ b/tests/lib/mirrors/eval_lazy_compile_test.dart
|
| @@ -2,19 +2,13 @@
|
| // 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.
|
|
|
| -library test.runtime_type_test;
|
| -
|
| -@MirrorsUsed(targets: 'test.runtime_type_test', override: '*')
|
| import 'dart:mirrors';
|
| -
|
| import 'package:expect/expect.dart';
|
|
|
| -class A {}
|
| -
|
| -class B {
|
| - get runtimeType => A;
|
| -}
|
| -
|
| main() {
|
| - Expect.equals(reflect(new B()).type, reflectClass(B));
|
| -}
|
| + String expression = "() => () => () => () => 3 + 4";
|
| + var f = reflect(0).eval(expression);
|
| + Expect.isTrue(f is Function);
|
| + Expect.equals(7, f()()()());
|
| + Expect.stringEquals(expression, reflect(f).function.source);
|
| +}
|
|
|