-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Bug Report
Attempting to replicate the Sample Code found at https://www.kcl-lang.io/docs/reference/lang/tour#schema.
1. Minimal reproduce step (Required)
schema Person:
age: int = 1 # Immutable attribute
_name: str = "Alice" # Mutable attribute
age = 10 # Error
_name = "Bob" # Ok
p:Person = Person{}
2. What did you expect to see? (Required)
An error message specific to Immutability
3. What did you see instead (Required)
❯ kcl person.k
p:
age: 10
4. What is your KCL components version? (Required)
❯ kcl --version
kcl version v0.11.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels