* Change to disallow indexing records/objects with strings * Update output * Remove outdated sim test * Fix tests
12 lines
238 B
Plaintext
12 lines
238 B
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Result of unparsing invalid_member_object_using_string.kcl
|
|
---
|
|
// This tests computed properties.
|
|
|
|
|
|
p = "foo"
|
|
obj = { foo = 1, bar = 0 }
|
|
// Try to index with a string.
|
|
one = obj[p]
|