1
0
forked from GitHub/gf-core

Remove CStr [] which causes error, update gold

This commit is contained in:
Inari Listenmaa
2021-06-16 12:01:28 +08:00
parent fd4fb62b9e
commit c3153134b7
3 changed files with 13 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ cat CStr String ;
CFloat Float ;
data empty : CStr "" ;
null : CStr [] ;
-- null : CStr [] ; -- Commented out by IL 06/2021: causes parse error
other : CStr "other" ;
data zero : CInt 0 ;

View File

@@ -1,5 +1,4 @@
i -src testsuite/compiler/typecheck/abstract/LitAbs.gf
ai null
ai empty
ai other
ai zero

View File

@@ -1,5 +1,12 @@
data null : CStr ""
data empty : CStr ""
data other : CStr "other"
data empty : CStr "" ;
Probability: 0.5
data other : CStr "other" ;
Probability: 0.5
data zero : CInt 0 ;
Probability: 1.0
data pi : CFloat 3.14 ;
Probability: 1.0