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

Side by Side Diff: test/samples/fieldtest.dart

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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 | « test/js/builder_test.dart ('k') | test/samples/function_type_test.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 library fieldtest;
6
7 class A {
8 int x = 42;
9 }
10
11 int foo(A a) {
12 print(a.x);
13 return a.x;
14 }
15
16 int bar(a) {
17 print(a.x);
18 return a.x;
19 }
20
21 baz(A a) => a.x;
22
23 void main() {
24 var a = new A();
25 foo(a);
26 bar(a);
27 print(baz(a));
28 }
OLDNEW
« no previous file with comments | « test/js/builder_test.dart ('k') | test/samples/function_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698