ww: finish initialization validation parity
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
//ww:error "slice-of-{str,slice,tagged} literal static-init unsupported"
|
||||
//ww:run-exit 0
|
||||
package main;
|
||||
type ms0 = str;
|
||||
type ms = ms0;
|
||||
let G: []ms = ["aa", "bbb"];
|
||||
export fn main() i32 = {
|
||||
if (len(G[0]) != 2) { return 1; };
|
||||
if (G.len != 2 || G.cap != 2) { return 1; };
|
||||
if (len(G[0]) != 2) { return 2; };
|
||||
if (len(G[1]) != 3) { return 3; };
|
||||
return 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user