Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False dead code warning when using aliases in structs #6041

Open
ironcev opened this issue May 21, 2024 · 0 comments
Open

False dead code warning when using aliases in structs #6041

ironcev opened this issue May 21, 2024 · 0 comments
Labels
bug Something isn't working DCA Everything to do with Dead Code Analysis

Comments

@ironcev
Copy link
Member

ironcev commented May 21, 2024

This code:

type IdentityAlias = Identity;

struct IdentityAliasWrapper {
    i: IdentityAlias,
}

reports that IdentityAlias is never used.
See: test/src/sdk-harness/test_projects/type_aliases/src/main.sw:3:1

@ironcev ironcev added bug Something isn't working DCA Everything to do with Dead Code Analysis labels May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DCA Everything to do with Dead Code Analysis
Projects
None yet
Development

No branches or pull requests

1 participant