Why doesn't constructor syntactic sugar for setting fields work when importing fields from a mixin?
mixin Nameable {
var name = '';
}
class Person with Nameable {
Person(this.name);
}
Fails with error-message 'name' isn't a field in the enclosing class.
This is ok though
mixin Nameable {
var name = '';
}
class Person with Nameable {
Person(String name) {
this.name = name;
}
}
Report as a bug?