* Change to disallow indexing records/objects with strings * Update output * Remove outdated sim test * Fix tests
		
			
				
	
	
		
			14 lines
		
	
	
		
			344 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			344 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ---
 | ||
| source: kcl-lib/src/simulation_tests.rs
 | ||
| description: Error from executing invalid_index_str.kcl
 | ||
| ---
 | ||
| KCL Semantic error
 | ||
| 
 | ||
|   × semantic: Only numbers (>= 0) can be indexes
 | ||
|    ╭─[2:5]
 | ||
|  1 │ arr = [1, 2, 3]
 | ||
|  2 │ x = arr["s"]
 | ||
|    ·     ────┬───
 | ||
|    ·         ╰── tests/invalid_index_str/input.kcl
 | ||
|    ╰────
 |