Skip to content

do not resolve aliases when renaming symbol#3199

Merged
Techatrix merged 2 commits into
masterfrom
techatrix/asymmetric-alias-references
May 12, 2026
Merged

do not resolve aliases when renaming symbol#3199
Techatrix merged 2 commits into
masterfrom
techatrix/asymmetric-alias-references

Conversation

@Techatrix
Copy link
Copy Markdown
Member

closes #3184

Example:

const S = struct {
    fn foo() void {}
};
comptime {
    const foo = S.foo;
    foo();
}
  • Renaming foo() will only rename foo() and const foo
  • Renaming fn foo is unchanged and will rename all four locations
  • References is also unchanged and will provide all four locations no matter where it has been requested.

@Techatrix Techatrix force-pushed the techatrix/asymmetric-alias-references branch from 091bb9e to 872ff4a Compare May 12, 2026 14:39
@Techatrix Techatrix merged commit 793b7ee into master May 12, 2026
6 checks passed
@Techatrix Techatrix deleted the techatrix/asymmetric-alias-references branch May 12, 2026 14:49
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

Successfully merging this pull request may close these issues.

Rename symbol renames the value instead of the constant binding

1 participant