-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Run this code:
schema TestRole:
name: str
test_lambda = lambda roles: [TestRole], custom_roles: [str] = [] -> [TestRole] {
roles + [TestRole{name=role} for role in custom_roles]
}
schema TestSchema:
custom_roles: [TestRole]
get_roles: () -> [any] = lambda {
test_lambda(roles=custom_roles, custom_roles=[])
}
_test_role = TestRole{name="test"}
test = TestSchema{custom_roles=[_test_role]}.get_roles()
2. What did you expect to see? (Required)
test:
- name: test
3. What did you see instead (Required)

4. What is your KCL components version? (Required)
> kcl version
0.11.3
Peefy and daudcanugerah
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working