mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-04 02:44:44 +00:00
Constants can contain objects (excluding object variants)
This commit is contained in:
@@ -199,7 +199,7 @@ The rules for compile-time computability are:
|
||||
(possibly empty) list of compile-time computable arguments.
|
||||
|
||||
|
||||
Constants cannot be of type ``ptr``, ``ref``, ``var`` or ``object``, nor can
|
||||
Constants cannot be of type ``ptr``, ``ref`` or ``var``, nor can
|
||||
they contain such a type.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user