Files
sdk/pkg/dev_compiler/test/codegen/constructors.dart
T
John Messerly 3124c7ec89 add the ability to easily test codegen by diffing against expected output
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
2014-12-09 16:52:05 -08:00

63 lines
608 B
Dart

class A {}
class B {
B();
}
class C {
C.named();
}
class C2 extends C {
C2.named() : super.named();
}
class D {
D();
D.named();
}
class E {
String name;
E(this.name);
}
class F extends E {
F(String name) : super(name);
}
class G {
// default parameters not implemented
G([String p1]);
}
class H {
// default parameters not implemented
H({String p1});
}
class I {
String name;
I() : name = 'default';
I.named(this.name);
}
class J {
int nonInitialized;
bool initialized;
J() : initialized = true;
}
class K {
String s = 'a';
K();
K.withS(this.s);
}