winglang / winglang/wing

Function Types: support implicit forward declarations

Open
#480 5 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.