//// [tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor7.ts] ////

//// [decoratorOnClassAccessor7.ts]
declare function dec1<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
declare function dec2<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;

class A {
    @dec1 get x() { return 0; }
    set x(value: number) { }
}

class B {
    get x() { return 0; }
    @dec2 set x(value: number) { }
}

class C {
    @dec1 set x(value: number) { }
    get x() { return 0; }
}

class D {
    set x(value: number) { }
    @dec2 get x() { return 0; }
}

class E {
    @dec1 get x() { return 0; }
    @dec2 set x(value: number) { }
}

class F {
    @dec1 set x(value: number) { }
    @dec2 get x() { return 0; }
}

//// [decoratorOnClassAccessor7.js]
"use strict";
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;
};
class A {
    get x() { return 0; }
    set x(value) { }
}
__decorate([
    dec1
], A.prototype, "x", null);
class B {
    get x() { return 0; }
    set x(value) { }
}
__decorate([
    dec2
], B.prototype, "x", null);
class C {
    set x(value) { }
    get x() { return 0; }
}
__decorate([
    dec1
], C.prototype, "x", null);
class D {
    set x(value) { }
    get x() { return 0; }
}
__decorate([
    dec2
], D.prototype, "x", null);
class E {
    get x() { return 0; }
    set x(value) { }
}
__decorate([
    dec1
], E.prototype, "x", null);
class F {
    set x(value) { }
    get x() { return 0; }
}
__decorate([
    dec1
], F.prototype, "x", null);
