Change display of mixed array to be clear what it is (#6757)

This commit is contained in:
Jonathan Tran
2025-05-08 14:47:15 -04:00
committed by GitHub
parent b65ea8e0a9
commit 1ccf8d4dd4
2 changed files with 2 additions and 2 deletions

View File

@ -307,7 +307,7 @@ impl KclValue {
} => "number(Angle)",
KclValue::Number { .. } => "number",
KclValue::String { .. } => "string (text)",
KclValue::MixedArray { .. } => "array (list)",
KclValue::MixedArray { .. } => "mixed array (list)",
KclValue::HomArray { .. } => "array (list)",
KclValue::Object { .. } => "object",
KclValue::Module { .. } => "module",

View File

@ -1932,7 +1932,7 @@ a = []
notArray = !a";
assert_eq!(
parse_execute(code5).await.unwrap_err().message(),
"Cannot apply unary operator ! to non-boolean value: array (list)",
"Cannot apply unary operator ! to non-boolean value: mixed array (list)",
);
let code6 = "