Type identifiers are not valid in structs
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 13
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Currently, using a type identifier as a parameter in a function, for some reason, breaks the code.
```
// This works
let foo (num) = $0
// This does not
let bar (⊤) = $0
// Nor this
let main (:arguments [String]) = print (foo 10)
```
We should fix the struct so that type identifiers are acceptable.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the three examples in the issue and trace how struct parameters and type identifiers are parsed or represented. The issue does not name source files or tests; done means type identifiers such as ⊤ and :arguments [String] are accepted without breaking the shown programs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100