shithub: mc

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