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: test/codegen/syncstar_syntax.dart

Issue 1988503002: Move generated files to gen/. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Revise. Created 4 years, 7 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 | « test/codegen/opassign.dart ('k') | test/codegen/temps.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) 2015, 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
5 import 'package:expect/expect.dart';
6
7 Iterable<int> foo() sync* {
8 yield 1;
9 yield* [2, 3];
10 }
11
12 class Class {
13 Iterable<int> bar() sync* {
14 yield 1;
15 yield* [2, 3];
16 }
17
18 static Iterable<int> baz() sync* {
19 yield 1;
20 yield* [2, 3];
21 }
22 }
23
24 main() {
25 Iterable<int> qux() sync* {
26 yield 1;
27 yield* [2, 3];
28 }
29
30 Expect.listEquals([1, 2, 3], foo().toList());
31 Expect.listEquals([1, 2, 3], new Class().bar().toList());
32 Expect.listEquals([1, 2, 3], Class.baz().toList());
33 Expect.listEquals([1, 2, 3], qux().toList());
34 }
OLDNEW
« no previous file with comments | « test/codegen/opassign.dart ('k') | test/codegen/temps.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698