shithub: mc

ref: 6d707df71c0fe11da7dd53bf36eb3d3fadb8ec9b
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")
}