phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0
This commit is contained in:
17
examples/semantics_test_branch.hako
Normal file
17
examples/semantics_test_branch.hako
Normal file
@ -0,0 +1,17 @@
|
||||
// Semantics test - Branch/Phi example
|
||||
|
||||
static box Main {
|
||||
main() {
|
||||
local x, y, result
|
||||
x = 10
|
||||
y = 20
|
||||
|
||||
if x < y {
|
||||
result = 100
|
||||
} else {
|
||||
result = 200
|
||||
}
|
||||
|
||||
return result // Should be 100
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user