Open
Description
class A {
factory B() => null;
}
library;
import self as self;
import "dart:core" as core;
class A extends core::Object {
static factory B() → self::A
return null;
}
Looking inside of the generated Kernel Procedure, I see that the name of the factory is set to B
, which is incorrect, because if it were A
, then the name would have been empty.
What I would expect is that an error is reported, and factory B()
is parsed as factory A()
, and correspondingly factory B.named()
as factory A.named()
.