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

idl-build doesn't work when default types are used as a type alias #2640

Closed
acheroncrypto opened this issue Sep 28, 2023 · 1 comment
Closed
Labels
bug Something isn't working idl related to the IDL, either program or client side

Comments

@acheroncrypto
Copy link
Collaborator

Using a type alias(#2637) with a default type, e.g.

pub type MyU8 = u8;

will result with

error[E0599]: no associated item named `__anchor_private_full_path` found for type `u8` in the current scope

This is because default the type MyU8 will be treated as a Defined type since it doesn't match any of the default types.

@acheroncrypto acheroncrypto added bug Something isn't working idl related to the IDL, either program or client side labels Sep 28, 2023
@acheroncrypto acheroncrypto mentioned this issue Feb 25, 2024
@acheroncrypto
Copy link
Collaborator Author

Fixed by #2824.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working idl related to the IDL, either program or client side
Projects
None yet
Development

No branches or pull requests

1 participant