-- main.mcl --
$funcgen = func() {
	func($b) {
		if $b {
			"hello"
		} else {
			"world"
		}
	}
}

$some_bool = false
$fn = if $some_bool {
	$funcgen()
} else {
	func($bb) {
		if $bb {
			"so true"
		} else {
			"so false"
		}
	}
}
$out1 = $fn(true)
$out2 = $fn(false)

test "${out1}" {}
test "${out2}" {}
-- OUTPUT --
Vertex: test[so true]
Vertex: test[so false]
