AJF-28: Constructor name patterns should use type patterns
Reported by Pavel:> The sort ConstrNamePat is defined as
Submitted on 8 June 2006 at 09:27
>
> “new” -> ConstrNamePattern
> {cons(“ConstrName”)}
> ClassNamePattern “.” “new” -> ConstrNamePattern
> {cons(“ConstrName”)}
> ClassNamePattern “..” “new” -> ConstrNamePattern
> {cons(“WildcardConstrName”)}
>
> This is actually not general enough – rather than having
> ClassNamePatterns there, full TypePatterns should be allowed:
> call(A[].new()) is valid syntax (although I think abc doesn’t currently
> handle this).
Log in to post comments