Fixed some error handling for invalid if statements. Started if codegen.
This commit is contained in:
6
test/if_cond_assign.ink
Normal file
6
test/if_cond_assign.ink
Normal file
@@ -0,0 +1,6 @@
|
||||
vertex main :: (pos : float3 @position) -> float4 @position {
|
||||
if 0 = 100 {
|
||||
return float4(pos, 1.0);
|
||||
}
|
||||
return float4(0.0);
|
||||
}
|
||||
Reference in New Issue
Block a user