266b6df92d
R=jmesserly@google.com, leafp@google.com Review URL: https://chromereviews.googleplex.com/157727013
80 lines
827 B
Dart
80 lines
827 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 {
|
|
num nonInitialized;
|
|
bool initialized;
|
|
|
|
J() : initialized = true;
|
|
}
|
|
|
|
class K {
|
|
String s = 'a';
|
|
|
|
K();
|
|
|
|
K.withS(this.s);
|
|
}
|
|
|
|
class L {
|
|
var foo;
|
|
L(this.foo);
|
|
}
|
|
|
|
class M extends L {
|
|
M.named(int x) : super(x + 42);
|
|
}
|
|
|
|
class N extends M {
|
|
N.named(int y) : super.named(y + 100);
|
|
}
|
|
|
|
class P extends N {
|
|
P(int z) : super.named(z + 9000);
|
|
}
|