Skip to content

Conversation

xdBronch
Copy link
Contributor

@xdBronch xdBronch commented Oct 3, 2025

closes #24477
closes #25438


// error
//
// :1:8: error: field default value contains reference to comptime var
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't know whats up with this source location, it was like this when i got here :p

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going to just drop this commit in favor of #25487 but will wait for a review so i dont needlessly run CI

@SeanTheGleaming
Copy link
Contributor

Wouldn't #25487 make this redundant?

@xdBronch
Copy link
Contributor Author

xdBronch commented Oct 6, 2025

no, this is slightly different. this is about the type that's given to anonymous tuples, e.g. const tuple = .{&a};. #25487 is for default values when creating types

Copy link
Member

@mlugg mlugg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! I'll wait for you to do whatever you're gonna do between this and #25487. You're welcome to just combine them into one PR if it's easiest, or you can rebase this one after the other one lands.

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