Closed
Description
The proposed syntax for a generic class with a named primary constructor (#3023) is:
class D.named<T>(int x);
It feels to me like it should be:
class D<T>.named(int x);
The type parameters are a property of the class itself, not the constructor. The syntax for invoking a named constructor on a generic class is:
D<String>.named(123)
Also, if we ever want to support generic constructors, we may find ourselves wanting to allow:
class D<ClassTypeParam>.named<CtorTypeParam>(int x);