FuelLabs / FuelLabs/sway

Update inlay hint for the `numeric` type

Open
#3,377 0 comments 0 reactions 0 assignees View on GitHub
compiler: frontend enhancement language server team:compiler
Dominant language
Rust
Stars
61.4k
Forks
5.4k
Avg merge
3h 33m
Merged PRs (30d)
4

Description

Currently, numeric literals get an inlay hint that says "numeric" which is not great. We may be able to do better by first figuring out the inferred type of the variable to which the literal is assigned.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the compiler code that produces inlay hints for numeric literals and read how the assigned variable's inferred type is determined. Define the expected hint wording from that inferred type, then add or update tests for numeric literals and verify the hint no longer always says "numeric".

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.