Closed

Description
This test crashes in debug mode:
./vm/ast.h:1689: error: expected: type_arguments_.IsNull() || (type_arguments_.Length() == Class::Handle(constructor_.owner()).NumTypeArguments())
Once the crash is analyzed and eliminated, feel free to lower this issues's priority.
FactoryNegativeTest.dart:
main() {
// Compile time error, wrong factory method.
var a = new Link<int>.create();
}
interface Link<T> factory LinkFactory {
Link.create();
}
class LinkFactory {
// Compile time error: should be Link<T>.create().
factory Link.create() {
return null;
}
}