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

Including imported module first as cli arg with generic interface leads to bad error message #5661

Open
expipiplus1 opened this issue Nov 25, 2024 · 0 comments
Labels
kind:bug something doesn't work like it should

Comments

@expipiplus1
Copy link
Collaborator

Following on from this: #5660

If we make I a generic interface then we get a very bad error message

nullType.slang:

import nullTypeModule;

struct S { }

extension S : I<float> { }

nullTypeModule.slang:

interface I<float> { } 

slangc -stage compute tests/bugs/nullTypeModule.slang tests/bugs/nullType.slang

(0): error 30060: expected a type, got a '<null>'
@expipiplus1 expipiplus1 added the kind:bug something doesn't work like it should label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug something doesn't work like it should
Projects
None yet
Development

No branches or pull requests

1 participant