Class ParameterisedConstructionForm

java.lang.Object
org.ek9lang.compiler.repair.ParameterisedConstructionForm

public final class ParameterisedConstructionForm extends Object
THE E06210 repair for a generic constructed with its parentheses AFTER the type arguments - List of String(), Dict of (String, Integer)(), echo of Integer() - which has ONE reading, List() of String (Steve, 2026-10-08, GENERIC CONSTRUCTION b). Use this; do not re-derive it.

It parses as a call of the type List of String - written without parentheses, which a construction needs - so the compiler reports E06210 on the generic's name. Nothing else can be meant: the parentheses belong to the generic, and the type arguments follow them. It was the most-chosen form in an LLM survey (Sonnet chose it 9 times in 9 in a five-way choice), so it is repaired rather than only explained. The taught form stays x <- List() of String; a declared target makes a bare List() enough (support/TargetTypedConstruction).

Applied only where the E06210 diagnostic's column is exactly on the name and the name is followed by of, type arguments and an EMPTY () - List of String with no parentheses at all, or with arguments, is not this shape and is left alone. Rewrites within one line; the caller re-verifies.