snow-deprecated
snow-deprecated copied to clipboard
Calling a function with not enough arguments
trafficstars
After playing in ./snow -i I stumbled upon this little weird thing:
yield: { it }
yield() // nil
yield: [a] { a }
yield() // -1808504320951916826
yield: [a, b] { @(a, b) }
yield(1) // @(1, -1808504320951916826)
I assume nil is what we want here?
That is indeed a bug, probably in the codegen. Weird thing is that it's always the same number – maybe it's memory poison.
Prioritizing...