17 lines
No EOL
507 B
Text
17 lines
No EOL
507 B
Text
tests/cases/conformance/decorators/invalid/decoratorOnImportEquals1.ts(8,5): error TS1203: Decorators are not valid on this declaration type.
|
|
|
|
|
|
==== tests/cases/conformance/decorators/invalid/decoratorOnImportEquals1.ts (1 errors) ====
|
|
declare function dec<T>(target: T): T;
|
|
|
|
module M1 {
|
|
export var X: number;
|
|
}
|
|
|
|
module M2 {
|
|
@dec
|
|
~~~~
|
|
import X = M1.X;
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS1203: Decorators are not valid on this declaration type.
|
|
} |