* transform a sketch Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix test Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
		
			
				
	
	
		
			15 lines
		
	
	
		
			398 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			398 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ---
 | ||
| source: kcl-lib/src/simulation_tests.rs
 | ||
| description: Error from executing invalid_index_str.kcl
 | ||
| ---
 | ||
| KCL Semantic error
 | ||
| 
 | ||
|   × semantic: Only integers >= 0 can be used as the index of an array, but
 | ||
|   │ you're using a string
 | ||
|    ╭─[2:5]
 | ||
|  1 │ arr = [1, 2, 3]
 | ||
|  2 │ x = arr["s"]
 | ||
|    ·     ────┬───
 | ||
|    ·         ╰── tests/invalid_index_str/input.kcl
 | ||
|    ╰────
 |