So the question is -- Does D not consider this(int x=0); a default constructor?
module test;
class Bar {
this(int x=0) {}
}
void main() {
assert(Object.factory("test.Bar") !is null);
}
// Regards
// Cherry
So the question is -- Does D not consider this(int x=0); a default constructor?
module test;
class Bar {
this(int x=0) {}
}
void main() {
assert(Object.factory("test.Bar") !is null);
}
// Regards
// Cherry