FuelLabs / FuelLabs/sway

Implement generic type aliases

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

Description

https://github.com/FuelLabs/sway/pull/4151 implements type aliases but does not allow generic type aliases. For example:
```rust
type MyResult = Result;
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading pull request #4151 to understand the existing type-alias implementation and then trace how the generic example in this issue is parsed and handled. The work is complete when a declaration such as `type MyResult = Result;` is accepted.

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.