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

Side by Side Diff: tests/language/async_backwards_compatibility_1_test.dart

Issue 423213005: Reland transformation of async functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 import 'dart:async';
6 import 'async_helper_lib.dart' as async;
7
5 class A { 8 class A {
6 static const S = 'A.S'; 9 async.async get async => null;
7 } 10 }
8 11
9 const S = 'S'; 12 async.async topLevel() => null;
10
11 foo(var p) {
12 switch (p) {
13 case S:
14 break;
15 case A.S:
16 break;
17 case 'abc':
18 break;
19 }
20 }
21 13
22 main() { 14 main() {
23 foo('p'); 15 var a = new A();
16 var b = a.async;
17 var c = topLevel();
24 } 18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698