Odin icon indicating copy to clipboard operation
Odin copied to clipboard

Incorrect error when using globals from another package as default parameter values

Open Tetralux opened this issue 3 years ago • 0 comments

  • Operating System & Odin Version: Windows x64, odin.exe version dev-2022-04:426a6a95
package test

import "core:os"

f :: proc(cmd: string, stdout := os.stdout) {}

main :: proc() {
    f("hi")
}
bug.odin(6:34) Use of import 'os' not in selector

Tetralux avatar Apr 07 '22 09:04 Tetralux