12 lines
179 B
TypeScript
12 lines
179 B
TypeScript
// @experimentalDecorators: true
|
|
interface I<T> {
|
|
prototype: T,
|
|
m: () => T
|
|
}
|
|
function dec<T>(c: I<T>) { }
|
|
|
|
@dec
|
|
class C {
|
|
_brand: any;
|
|
static m() {}
|
|
}
|