3124c7ec89
this makes changes easy to spot some of this code was taken from old polymer.dart test scripts :) R=sigmund@google.com Review URL: https://chromereviews.googleplex.com/121567013
25 lines
227 B
Dart
25 lines
227 B
Dart
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));
|
|
}
|