-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Using @TypeOf(x) as return type causes nothing to be emitted #22921
Labels
bug
Observed behavior contradicts documented or intended behavior
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
regression
It worked in a previous version of Zig, but stopped working.
Milestone
Comments
LLVM backend stack trace
Self hosted backend stack trace
|
Hey @Vexu, do you think maybe this should go in the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Observed behavior contradicts documented or intended behavior
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
regression
It worked in a previous version of Zig, but stopped working.
Zig Version
0.14.0-dev.3237+ddff1fa4c
Steps to Reproduce and Observed Behavior
This code fails to emit IR, seemingly because of the
@TypeOf(s)
(Godbolt)Expected Behavior
It should be equivalent to:
The last working version of Zig I have on my machine is
v0.14.0-dev.2851+b074fb7dd
. The first broken version I have isv0.14.0-dev.3028+cdc9d65b0
The text was updated successfully, but these errors were encountered: