mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-09 16:39:46 -05:00
Added positive test case suggested in #6129.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// @target: ES5
|
||||
// @experimentaldecorators: true
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
method()
|
||||
@dec
|
||||
method() { }
|
||||
}
|
||||
Reference in New Issue
Block a user