X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=csrc%2Foceani-tests.mdc;h=7a408179378b67a59b15062e2ed0946eb417575f;hp=4dceab407eee8c163f4a3e69fedca3b8ccf3afe6;hb=4edaeb7f2f51bb7486b11783b65ffcce2d2244f7;hpb=728fde45c4ead92c216be0ee7d1db3019e518aef diff --git a/csrc/oceani-tests.mdc b/csrc/oceani-tests.mdc index 4dceab4..7a40817 100644 --- a/csrc/oceani-tests.mdc +++ b/csrc/oceani-tests.mdc @@ -999,7 +999,17 @@ Test for type errors with functions func test5(a:number):string print a + struct foo + a: number + b:string = "hello" + + func test6(a:number):foo + b:foo + b.a = a + use b + ###### output: func_err_args + .tmp.code:34:5: error: function cannot return value of type foo .tmp.code:28:14: error: expected string, found none .tmp.code:25:8: error: expected string, found number .tmp.code:15:14: error: insufficient arguments to function.