Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: dart/tests/compiler/dart2js_extra/closure_type_reflection2_test.dart

Issue 131403007: Version 1.1.0-dev.5.6 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Test that classes referenced from a signature of a tear-off closure 5 // Test that classes referenced from a signature of a tear-off closure
6 // are emitted. 6 // are emitted.
7 7
8 @MirrorsUsed(targets: 'C') 8 @MirrorsUsed(targets: 'C')
9 import 'dart:mirrors'; 9 import 'dart:mirrors';
10 10
11 import 'package:expect/expect.dart'; 11 import 'package:expect/expect.dart';
12 12
13 class A {} 13 class A {}
14 14
15 class C { 15 class C {
16 A foo() {} 16 A foo() {}
17 } 17 }
18 18
19 main() { 19 main() {
20 Expect.isFalse(reflect(new C().foo).function.returnType.toString() 20 Expect.isFalse(reflect(new C().foo).function.returnType.toString()
21 .contains('dynamic')); 21 .contains('dynamic'));
22 } 22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698