2015-03-20 06:57:03 +01:00
|
|
|
tests/cases/conformance/decorators/invalid/decoratorOnImportEquals1.ts(8,5): error TS1206: Decorators are not valid here.
|
2015-03-17 23:03:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
==== 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
|
2015-04-02 21:05:56 +02:00
|
|
|
~
|
2015-03-20 06:57:03 +01:00
|
|
|
!!! error TS1206: Decorators are not valid here.
|
2015-04-02 21:05:56 +02:00
|
|
|
import X = M1.X;
|
2015-03-17 22:06:06 +01:00
|
|
|
}
|