Odin icon indicating copy to clipboard operation
Odin copied to clipboard

@ private attribute not working with explicit procedure overloading

Open st142148 opened this issue 3 years ago • 1 comments
trafficstars

Odin: dev-2021-12:c771ea97 OS: Arch Linux, Linux 5.15.6-hardened1-1-hardened CPU: AMD Ryzen 5 1600 Six-Core Processor RAM: 16013 MiB

Expected Behavior

Expect the @ private attribute to work for explicit overloading as it works for normal procedures.

Steps to Reproduce

main.odin:

package main
import "./mod"
main :: proc() {
    //mod.foo() //>'foo' is not exported by 'mod'
    mod.bar()   //works
}

mod/mod.odin:

package mod
import "core:fmt"

@private
bar :: proc{foo}

@private
foo :: proc() {
    fmt.println("Private!")
}
/>odin run main.odin
/>Private!

st142148 avatar Dec 14 '21 19:12 st142148

Hello!

I am marking this issue as stale as it has not received any engagement from the community or maintainers 120 days. That does not imply that the issue has no merit! If you feel strongly about this issue

  • open a PR referencing and resolving the issue;
  • leave a comment on it and discuss ideas how you could contribute towards resolving it;
  • leave a comment and describe in detail why this issue is critical for your use case;
  • open a new issue with updated details and a plan on resolving the issue.

The motivation for this automation is to help prioritize issues in the backlog and not ignore, reject, or belittle anyone..

github-actions[bot] avatar Jul 24 '22 22:07 github-actions[bot]