You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Grouped imports give cryptic 'expected identifier' instead of explaining the syntax #4
The caret points at shape2 inside the braces. There is no indication that brace-grouped imports are the problem. An agent (or human) will try renaming shape2, quoting it, changing the path — everything except the actual fix.
Expected behavior
error: grouped imports are not supported
--> test/view_smoke.w:1:16
1 | use crux.core.{shape2, shape3, strides_get}
| ^
= help: import the entire module instead: `use crux.core`
Repro
mkdir -p /tmp/wbug/lib/demo
echo"pub fn add(a: i32, b: i32) -> i32: a + b"> /tmp/wbug/lib/demo/math.w
echo'use demo.math.{add}fn main: let x = add(1, 2)'> /tmp/wbug/main.w
cd /tmp/wbug && with check main.w
Verified on current main: grouped imports now parse and run successfully. The original use demo.math.{add} style repro imports and executes cleanly, so this issue is stale.
Activity
ehartford commentedon Mar 20, 2026
Verified on current
main: grouped imports now parse and run successfully. The originaluse demo.math.{add}style repro imports and executes cleanly, so this issue is stale.Slice B design: verified Sema costs, Option B asymmetry, slice assign…
Slice B design: verified Sema costs, Option B asymmetry, slice assign…
MirLower: a call through a let-alias of a non-Copy fn field calls the…
MirLower: a call through a let-alias of a non-Copy fn field calls the…