X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=csrc%2Foceani-tests.mdc;h=e502822eca852eab30e7c320ddc9bb079c862282;hp=b613ffe484133dd040753b3fa27c129635c37839;hb=0fff05884fe4b40c86252e89fb16f307309299cd;hpb=ae5eb8c9a77d3d5c08db91ae0ca1f86762172a79 diff --git a/csrc/oceani-tests.mdc b/csrc/oceani-tests.mdc index b613ffe..e502822 100644 --- a/csrc/oceani-tests.mdc +++ b/csrc/oceani-tests.mdc @@ -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