mirror of
https://github.com/apple/pkl.git
synced 2026-05-28 01:29:15 +02:00
Add support for const object members (#678)
This adds support for adding the `const` modifier to object members. Such object members are also required to have the `local` modifier applied. This follows SPICE-0011.
This commit is contained in:
@@ -19,6 +19,9 @@ Modifier `{0}` is not applicable to properties.
|
||||
invalidObjectMemberModifier=\
|
||||
Modifier `{0}` is not applicable to object members.
|
||||
|
||||
invalidConstObjectMemberModifier=\
|
||||
Modifier `const` can only be applied to object members that are also `local`.
|
||||
|
||||
objectMethodMustBeLocal=\
|
||||
Method needs a `local` modifier because it is defined in an object, not a class.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user