You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:/code/order_bug/a.odin(5:21) Error: Invalid declaration value '_read_entire_file'
read_entire_file :: _read_entire_file
^~~~~~~~~~~~~~~~^
It's a race condition so you only get it sometimes.
Doing read_entire_file :: os.read_entire_file without the in-between _ version makes it work.
It only happens when I use an imported symbol in _read_entire_file :: os.read_entire_file... If I do read_entire_file :: 5 then it works OK (given that I also change the code in main).
The text was updated successfully, but these errors were encountered:
Context
Expected Behavior
read_entire_file :: _read_entire_file
in one fileand
_read_entire_file :: os.read_entire_file
in another file should work.Current Behavior
Sometimes (race condition) you get:
Failure Information (for bugs)
Steps to Reproduce
a.odin
b.odin
Save both into a folder and run:
odin run .
Sometimes you'll get:
It's a race condition so you only get it sometimes.
Doing
read_entire_file :: os.read_entire_file
without the in-between_
version makes it work.It only happens when I use an imported symbol in
_read_entire_file :: os.read_entire_file
... If I doread_entire_file :: 5
then it works OK (given that I also change the code inmain
).The text was updated successfully, but these errors were encountered: