google / google/xls

ParseError is provided in lieu of TypeError for Proc config

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

Description

In the following example:
```
proc driver_proc {
output_c: chan out u32;

config(output_c: chan out u32) {
(output_c)
}

next(tok: token) {
let tok = send(tok, output_c, u32:0);
(tok)
}
}
```

With the code above, the error is as follows:
```
0034: config(output_c: chan out u32) {
0035: (output_c)
~~~~~~~~~~~^------^ ParseError: The final expression in a Proc config must be a tuple with one element for each Proc data member.
0036: }
0037:
```

A TypeError would be more descriptive.

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.