You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: proposals/0492-section-control.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,11 +194,12 @@ This proposal defines a **constant expression** as being one of:
194
194
- a floating-point literal of type Float or Double
195
195
- a boolean literal of type Bool
196
196
- a direct reference to a non-generic function using its name (the function itself is not generic, and also it must not be defined in a generic context)
197
+
- a closure literal with no captures and not in a generic context
197
198
- a direct reference to a non-generic metatype using the type name directly (the type itself is not generic, and also it must not be defined in a generic context), where the type is non-resilient
198
199
- a tuple composed of only other constant expressions
199
200
- an array literal of type InlineArray composed of only other constant expressions
200
201
201
-
Explicitly, this definition currently does **not allow** any operators, using any user-defined named types, any other standard type (e.g. strings, dictionaries, sets), using closures, or referencing any variables by name. See below for examples of valid and invalid constant expressions:
202
+
Explicitly, this definition currently does **not allow** any operators, using any user-defined named types, any other standard type (e.g. strings, dictionaries, sets), using closures with captures, or referencing any variables by name. See below for examples of valid and invalid constant expressions:
0 commit comments