Add test for getters and setters
This commit is contained in:
parent
da588aa4bc
commit
0f6574e7e6
|
@ -58,6 +58,17 @@ module schema {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
module schema {
|
||||||
|
export class T {
|
||||||
|
get createValidator9(): <T>(data: T) => T {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
set createValidator10(v: <T>(data: T) => T) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//// [isDeclarationVisibleNodeKinds.js]
|
//// [isDeclarationVisibleNodeKinds.js]
|
||||||
// Function types
|
// Function types
|
||||||
var schema;
|
var schema;
|
||||||
|
@ -123,6 +134,28 @@ var schema;
|
||||||
}
|
}
|
||||||
_schema.createValidator8 = createValidator8;
|
_schema.createValidator8 = createValidator8;
|
||||||
})(schema || (schema = {}));
|
})(schema || (schema = {}));
|
||||||
|
var schema;
|
||||||
|
(function (schema) {
|
||||||
|
var T = (function () {
|
||||||
|
function T() {
|
||||||
|
}
|
||||||
|
Object.defineProperty(T.prototype, "createValidator9", {
|
||||||
|
get: function () {
|
||||||
|
return undefined;
|
||||||
|
},
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
Object.defineProperty(T.prototype, "createValidator10", {
|
||||||
|
set: function (v) {
|
||||||
|
},
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
return T;
|
||||||
|
})();
|
||||||
|
schema.T = T;
|
||||||
|
})(schema || (schema = {}));
|
||||||
|
|
||||||
|
|
||||||
//// [isDeclarationVisibleNodeKinds.d.ts]
|
//// [isDeclarationVisibleNodeKinds.d.ts]
|
||||||
|
@ -158,3 +191,9 @@ declare module schema {
|
||||||
<T>(data: T): T;
|
<T>(data: T): T;
|
||||||
}>;
|
}>;
|
||||||
}
|
}
|
||||||
|
declare module schema {
|
||||||
|
class T {
|
||||||
|
createValidator9: <T>(data: T) => T;
|
||||||
|
createValidator10: <T>(data: T) => T;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -138,3 +138,31 @@ module schema {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
module schema {
|
||||||
|
>schema : typeof schema
|
||||||
|
|
||||||
|
export class T {
|
||||||
|
>T : T
|
||||||
|
|
||||||
|
get createValidator9(): <T>(data: T) => T {
|
||||||
|
>createValidator9 : <T>(data: T) => T
|
||||||
|
>T : T
|
||||||
|
>data : T
|
||||||
|
>T : T
|
||||||
|
>T : T
|
||||||
|
|
||||||
|
return undefined;
|
||||||
|
>undefined : undefined
|
||||||
|
}
|
||||||
|
|
||||||
|
set createValidator10(v: <T>(data: T) => T) {
|
||||||
|
>createValidator10 : <T>(data: T) => T
|
||||||
|
>v : <T>(data: T) => T
|
||||||
|
>T : T
|
||||||
|
>data : T
|
||||||
|
>T : T
|
||||||
|
>T : T
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// @declaration: true
|
// @declaration: true
|
||||||
|
// @target: es5
|
||||||
|
|
||||||
// Function types
|
// Function types
|
||||||
module schema {
|
module schema {
|
||||||
|
@ -56,3 +57,15 @@ module schema {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
module schema {
|
||||||
|
export class T {
|
||||||
|
get createValidator9(): <T>(data: T) => T {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
set createValidator10(v: <T>(data: T) => T) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue