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

Side by Side Diff: pkg/kernel/testcases/input/async_function.dart

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « pkg/kernel/testcases/input/arithmetic.dart ('k') | pkg/kernel/testcases/input/bad_store.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
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.
4 import 'dart:async';
5
6 Future<String> asyncString() async {
7 return "foo";
8 }
9
10 Future<String> asyncString2() async {
11 return asyncString();
12 }
13
14 Iterable<String> syncStarString() sync* {
15 yield "foo";
16 yield* syncStarString2();
17 yield* stringList;
18 }
19
20 Iterable<String> syncStarString2() sync* {
21 yield "foo";
22 }
23
24 Stream<String> asyncStarString() async* {
25 yield "foo";
26 yield* asyncStarString2();
27 yield await asyncString();
28 }
29
30 Stream<String> asyncStarString2() async* {
31 yield "bar";
32 }
33
34 List<String> stringList = ["bar"];
35
36 main() async {
37 String str = await asyncString();
38 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/input/arithmetic.dart ('k') | pkg/kernel/testcases/input/bad_store.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698