You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check:
fun fcheck() block:
1 is 1
print("1 is 1?")
where:
2 is 2
print("2 is 2?")
end
fcheck()
end
fun ftop(a):
1 == 2
where:
fun fnestedwhere():
1
where:
3 is 3
print("3 is 3?")
end
4 is 4
print("4 is 4?")
fnestedwhere() is 1
end
ftop(1)
output is:
false
1 is 1?
4 is 4?
And the test output confirms that the "1 is 1" and "4 is 4" tests run, but the "2 is 2" and "3 is 3" tests - which are in where blocks that are nested inside another check or where block - don't.