This already works. The comptime works as a function, so the first and the second conditions are evaluated at comptime, and as you said, the optimizer folds the IFs away.
However, if one did this (under the current proposal)
The last condition would error out.
I’m of two minds about this. It can be a powerful thing to mix runtime and comptime in one chain, but it also increases the chances of accidental errors, and the workaround is reasonably easy.