Open Tirasz opened 2 years ago
What is happening in a simpler example:
if A == 2 and C:
pre_nest()
if B == 3:
nested()
if A == 2 and C:
pre_nest()
if B == 3:
nested()
else:
nested_else()
Gets turned into:
match A:
case 2 if C and B == 3:
pre_nest()
nested()
match A:
case 2 if C and B == 3:
pre_nest()
nested()
case 2:
pre_nest()
nested_else()
Many things are wrong with this but im too tired
This:
Got turned into this:
Im not 100% sure, but i think this is because the nested if-node doesnt have an "else:" block, thus there is no case created for when only the main if-node's test is true, which is a pretty big oversight. Possible fixes: