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
const MYVAL := Foo.val
enum Foo{
val
}
fun main() {
println(MYVAL)
}
Current Behavior
/home/lynx/Documents/tiabeast/bait/examples/hello_world.js:468
const MYVAL = Foo.val
^
ReferenceError: Cannot access 'Foo' before initialization
at Object.<anonymous> (/home/lynx/Documents/tiabeast/bait/examples/hello_world.js:468:15)
at Module._compile (node:internal/modules/cjs/loader:1255:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
at Module.load (node:internal/modules/cjs/loader:1113:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47
Node.js v20.2.0
Description and Reproduction Sample
Current Behavior
Expected Behavior
Run fine
Possible Solution and Additional Information
No response
Environment details (bait doctor)
Version: Bait 0.0.4-dev 32ee889
OS: linux/x64
Git: git version 2.41.0
Node.js: v20.2.0
The text was updated successfully, but these errors were encountered: