It is static warning to create instance (new) of the malformed type #11595
Labels
area-test
Cross-cutting test issues (use area- labels for specific failures; not used for package:test).
closed-obsolete
Closed as the reported issue is no longer relevant
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
language/instantiate_type_variable_negative_test
12.11 Instance Creation
Instance creation expressions invoke constructors to produce instances.
It is a static type warning if the type T in an instance creation expression
of one of the forms
new T:id(a1; : : : ; an; xn+1 : an+1; : : : ; xn+k : an+k),
new T(a1; : : : ; an; xn+1 : an+1; : : : ; xn+k : an+k),
const T:id(a1; : : : ; an; xn+1 : an+1; : : : ; xn+k : an+k),
const T(a1; : : : ; an; xn+1 : an+1; : : : ; xn+k : an+k) is malformed (15.2) or
malbounded (15.8).
The text was updated successfully, but these errors were encountered: