]> ocean-lang.org Git - ocean/blobdiff - csrc/oceani-tests.mdc
oceani: fix parsing of error in struct field.
[ocean] / csrc / oceani-tests.mdc
index b613ffe484133dd040753b3fa27c129635c37839..e502822eca852eab30e7c320ddc9bb079c862282 100644 (file)
@@ -922,7 +922,7 @@ various places that `type_err()` are called.
 
        struct foo
                a: number
-               b:string = "hello"
+               b:string = "hello"; d:Boolean
 
        func main()
                c := "hello"
@@ -1033,10 +1033,12 @@ various places that `type_err()` are called.
                b:string
        struct foo
                c:number
+               x:[5]:string
 
 ###### output: type_err5
        .tmp.code:8:7: error: type already declared: foo
        .tmp.code:2:7: info: this is location of declartion: foo
+       .tmp.code:10:13: Syntax error in struct field: :
        .tmp.code:5:7: error: type has recursive definition: baz
        .tmp.code:2:7: error: type has recursive definition: foo