Added inferred types and missing length function.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[1;37mtest/field_without_type_specifier.ink:2,0: [31merror: [37mExpected type specifier after field name.
|
||||
[96mx := 5.0;
|
||||
^
|
||||
[36m[37m
|
||||
(program
|
||||
(fun vertex vs_main
|
||||
[]
|
||||
(:= x 5)))
|
||||
18
test/parse/inferred_types.golden
Normal file
18
test/parse/inferred_types.golden
Normal file
@@ -0,0 +1,18 @@
|
||||
(program
|
||||
(fun bar -> float
|
||||
[]
|
||||
(return 5))
|
||||
|
||||
(fun foo -> float
|
||||
[]
|
||||
(return (bar)))
|
||||
|
||||
(fun vertex vs_main -> float4 (@position)
|
||||
[(:= pos float3 (@position))]
|
||||
(:= f 2)
|
||||
(:= i 10)
|
||||
(= f (foo))
|
||||
(:= v2 (float2 2 2))
|
||||
(:= v3 (float3 2 2 3))
|
||||
(:= v4 (float4 4 5 6 7))
|
||||
(return (float4 1 1 1 1))))
|
||||
Reference in New Issue
Block a user