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

error message for casting generic to incompatible type does not work properly with nested generics #1953

Open
Book-reader opened this issue Feb 10, 2025 · 0 comments

Comments

@Book-reader
Copy link
Contributor

Book-reader commented Feb 10, 2025

def Test = List(<List(<List(<char>)>)>);


fn void main()
{
  (String)Test{}; // Error: It is not possible to cast 'Test' (List(<List>)) to 'String'.
}

it makes it harder to tell the actual type with the error as part of it is cut off

I think that this worked at some point?
edit: it doesn't seem like it ever did

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant