Function Types: support implicit forward declarations
Open
Nobody has claimed this yet.
📜 lang-spec-impl
🛠️ compiler
roadmap
- Dominant language
- TypeScript
- Stars
- 5.4k
- Forks
- 215
- Avg merge
- 2h 9m
- Merged PRs (30d)
- 27
Description
This, for example, should be supported:
let f = () => {
x = 1;
}
let x = 2;
This was split from https://github.com/winglang/wing/issues/25
Contributor guide
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
No files or tests are named. Start with the example and the linked predecessor issue (#25), then trace how the compiler handles function types and name resolution. Done means the shown program, including its reference to x declared later, is accepted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100