google / google/xls

DSLX: Bad error on `send` on channel array (instead of a channel)

Open
#692 1 comment 0 reactions 0 assignees View on GitHub
dslx
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

I accidentally did:
```
my_chans: chan[4];
...
let tok = send(tok, my_chans, foo);
```

Obv. wrong: you send on individual channels, not channel arrays (tho that's an interesting idea). Instead of a nice error message, I got a XLS_RET_CHECK failure: `Check failed: ::absl::OkStatus() == (status) (OK vs. INTERNAL: XLS_RET_CHECK failure (xls/dslx/deduce.cc:2192) channel_type != nullptr ((nil) vs. nullptr)`.

Fix plz

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.