Inky-developer / debris

A powerful datapack generator for minecraft
https://inky-developer.github.io/debris/debris_lang/
MIT License
15 stars 0 forks source link

Whether a function compiles or not depends on the caller #38

Closed Inky-developer closed 3 years ago

Inky-developer commented 3 years ago

Example:

let a = 1;
fn foo() -> Int {
    a
}
print(foo())

compiles, while

print(foo())
let a = 1;
fn foo() -> Int {
    a
}

does not compile.

Inky-developer commented 3 years ago

For now I'll close this, because I cannot see a better solution than what is happening right now. I might come back later though.