Files
sdk/pkg/dev_compiler/test/samples/fieldtest.dart
T
Vijay Menon 5c1c9c2381 Add LICENSE and corresponding headers
Fix expectations where line number has changed.

R=dgrove@google.com

Review URL: https://chromereviews.googleplex.com/158257013
2015-02-24 15:02:26 -08:00

29 lines
444 B
Dart

// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library fieldtest;
class A {
int x = 42;
}
int foo(A a) {
print(a.x);
return a.x;
}
int bar(a) {
print(a.x);
return a.x;
}
baz(A a) => a.x;
void main() {
var a = new A();
foo(a);
bar(a);
print(baz(a));
}