if someCondition() {
something := getSomething()
} else {
something := getSomethingElse()
}
print(something)
in this code example, compiler gives an undefined: something
error. Since this is an if else statement something
variable will be defined in the runtime, but compiler fails detect this.
How can I avoid this compile error, also will this be fixed in the next versions?