Source range for pipe value used as unlabelled arg (#6787)

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-05-11 17:43:12 +12:00
committed by GitHub
parent 92f7a62af2
commit f36b69f4f0
3 changed files with 42 additions and 40 deletions

View File

@ -2038,17 +2038,6 @@ async fn kcl_test_ensure_nothing_left_in_batch_multi_file() {
ctx.close().await;
}
#[tokio::test(flavor = "multi_thread")]
async fn kcl_test_default_param_for_unlabeled() {
let code = r#"fn myExtrude(@sk, len) {
return extrude(sk, length = len)
}
sketch001 = startSketchOn(XY)
|> circle(center = [0, 0], radius = 93.75)
|> myExtrude(len = 40)"#;
let _ = execute_and_snapshot(code, None).await.unwrap();
}
#[tokio::test(flavor = "multi_thread")]
async fn kcl_test_better_type_names() {