shithub: mc

ref: 74d91a0021de012908cfdb35fb61a1473a376130
dir: /test/initializer.myr/

View raw version
use std

pkg =
    type qid = struct
        ty  : uint8
        path    : uint64
    ;;

    type stat = struct
        dev : uint32
        qid : qid
    ;;
;;

const main = {
    var stat : stat = [.dev=0, .qid=[.ty=0, .path=0]]
    std.assert(stat.qid.path == 0, "fail\n")
}