//// [metadataOfUnionWithNull.ts]
function PropDeco(target: Object, propKey: string | symbol) { }

class A {
}

class B {
    @PropDeco
    x: "foo" | null;

    @PropDeco
    y: true | never;

    @PropDeco
    z: "foo" | undefined;

    @PropDeco
    a: null;

    @PropDeco
    b: never;

    @PropDeco
    c: undefined;

    @PropDeco
    d: undefined | null;

    @PropDeco
    e: symbol | null;

    @PropDeco
    f: symbol | A;

    @PropDeco
    g: A | null;

    @PropDeco
    h: null | B;

    @PropDeco
    j: null | symbol;
}

//// [metadataOfUnionWithNull.js]
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
function PropDeco(target, propKey) { }
var A = (function () {
    function A() {
    }
    return A;
}());
var B = (function () {
    function B() {
    }
    return B;
}());
__decorate([
    PropDeco,
    __metadata("design:type", String)
], B.prototype, "x");
__decorate([
    PropDeco,
    __metadata("design:type", Boolean)
], B.prototype, "y");
__decorate([
    PropDeco,
    __metadata("design:type", String)
], B.prototype, "z");
__decorate([
    PropDeco,
    __metadata("design:type", void 0)
], B.prototype, "a");
__decorate([
    PropDeco,
    __metadata("design:type", void 0)
], B.prototype, "b");
__decorate([
    PropDeco,
    __metadata("design:type", void 0)
], B.prototype, "c");
__decorate([
    PropDeco,
    __metadata("design:type", void 0)
], B.prototype, "d");
__decorate([
    PropDeco,
    __metadata("design:type", typeof Symbol === "function" ? Symbol : Object)
], B.prototype, "e");
__decorate([
    PropDeco,
    __metadata("design:type", Object)
], B.prototype, "f");
__decorate([
    PropDeco,
    __metadata("design:type", A)
], B.prototype, "g");
__decorate([
    PropDeco,
    __metadata("design:type", B)
], B.prototype, "h");
__decorate([
    PropDeco,
    __metadata("design:type", typeof Symbol === "function" ? Symbol : Object)
], B.prototype, "j");
