mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Migrated decorator checks to call resolution
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// @emitdecoratormetadata: true
|
||||
// @target: es5
|
||||
|
||||
function decorator() { }
|
||||
declare var decorator: any;
|
||||
|
||||
@decorator
|
||||
class A {
|
||||
|
||||
@@ -4,8 +4,8 @@ declare function ClassDecorator1(target: Function): void;
|
||||
declare function ClassDecorator2(x: number): (target: Function) => void;
|
||||
declare function PropertyDecorator1(target: Object, key: string | symbol, descriptor?: PropertyDescriptor): void;
|
||||
declare function PropertyDecorator2(x: number): (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void;
|
||||
declare function ParameterDecorator1(target: Function, key: string | symbol, paramIndex: number): void;
|
||||
declare function ParameterDecorator2(x: number): (target: Function, key: string | symbol, paramIndex: number) => void;
|
||||
declare function ParameterDecorator1(target: Object, key: string | symbol, paramIndex: number): void;
|
||||
declare function ParameterDecorator2(x: number): (target: Object, key: string | symbol, paramIndex: number) => void;
|
||||
|
||||
@ClassDecorator1
|
||||
@ClassDecorator2(10)
|
||||
|
||||
Reference in New Issue
Block a user