I experimented with it and it appears to be a compile-time error. I've tried a handful of different ways to make a variable's declaration non-deterministic in my code, and I haven't found a way yet (though that's no proof that it isn't possible). For instance, it appears that if you declare a variable in a if block, that variable goes out-of-scope at the end of the block.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice!
Is that a runtime error?
I experimented with it and it appears to be a compile-time error. I've tried a handful of different ways to make a variable's declaration non-deterministic in my code, and I haven't found a way yet (though that's no proof that it isn't possible). For instance, it appears that if you declare a variable in a
if
block, that variable goes out-of-scope at the end of the block.