[Spec Deviation] Allow any simple-const-expr in describing singleton types #13410
Labels
Area/Compiler
Points/3
Equivalent to three days effort
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/NewFeature
Type/SpecDeviation
Milestone
Description:
As per the spec (v0.990:2019-01-16 - page 29, 30),
"singleton-type-descriptor := simple-const-expr
A singleton type is a type containing a single shape. A singleton type is described using an compile-time constant expression for a single value: the type contains the shape of that value. Note that it is possible for the variable-reference within the simple-const-expr to reference a structured value."
Unsupported expressions need to be supported.
Affected Versions:
0.990.2
The text was updated successfully, but these errors were encountered: