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
Labels
Accepted Accepted Request Enhancement Request New feature or request
Milestone

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 don't think it is particularly important though.

I think that this gave the full type at some point?
edit: it doesn't seem like it ever did

@lerno lerno added the Enhancement Request New feature or request label Mar 10, 2025
@lerno lerno added this to the 0.7.1 milestone Mar 10, 2025
@lerno lerno added the Accepted Accepted Request label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted Request Enhancement Request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants