Improve linking of overloaded functions

Open
#50 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
12/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
compilers

Research direction

The issue points to the custom linker for overloaded functions and methods in the LOX example language, but names no files or tests. Start by finding that linker and the test cases that exercise overload selection. The open questions are how to pick the best match when several overloads fit through implicit conversion, what to do on ambiguity, and how to report candidates when none match. Settling those needs a design decision from maintainers before any code change.

Written by the indexing model from the issue text.

Description

in progress Predefined Types
  • related to the custom linker in LOX for selecting overloaded functions and methods
  • What about if more than one overload matches (thanks to implicit conversion etc.)? How to select the "best" match? What to do in case of ambiguities?
  • If no one matches, provide a more "speaking" error message with candidates instead of linking with the first overload?
Dominant language
TypeScript
Stars
52
Forks
5
Avg merge
1h 31m
Merged PRs (30d)
3

Getting set up

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.

More from TypeFox/typir

All issues in TypeFox/typir

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.