Files
modeling-app/rust/kcl-lib/tests/var_ref_in_own_def/unparsed.snap
Adam Chalmers d3979edb41 KCL: Better error message when using var in its own definition (#7339)
I thought I did this in https://github.com/KittyCAD/modeling-app/pull/7325, but I forgot to actually set the better message.

Actually fixes, for real this time, https://github.com/KittyCAD/modeling-app/issues/6072 this time.
2025-06-03 16:46:28 +00:00

8 lines
259 B
Plaintext

---
source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing var_ref_in_own_def.kcl
---
// This won't work, because `sketch001` is being referenced in its own definition.
sketch001 = startSketchOn(XY)
|> startProfileAt([20, -20], sketch001)