From 5673400f82c9a4343353d33869ac56d2ea3587c5 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 17 Mar 2015 15:03:25 -0700 Subject: [PATCH] Updated baselines --- .../decoratorOnClassConstructor1.errors.txt | 20 ++++++------ .../decoratorOnClassProperty13.errors.txt | 32 +++++++++---------- .../reference/decoratorOnEnum.errors.txt | 20 ++++++------ .../decoratorOnFunctionDeclaration.errors.txt | 20 ++++++------ .../decoratorOnImportEquals1.errors.txt | 32 +++++++++---------- .../decoratorOnImportEquals2.errors.txt | 26 +++++++-------- .../reference/decoratorOnInterface.errors.txt | 20 ++++++------ .../decoratorOnInternalModule.errors.txt | 22 ++++++------- .../reference/decoratorOnTypeAlias.errors.txt | 22 ++++++------- .../reference/decoratorOnVar.errors.txt | 22 ++++++------- 10 files changed, 118 insertions(+), 118 deletions(-) diff --git a/tests/baselines/reference/decoratorOnClassConstructor1.errors.txt b/tests/baselines/reference/decoratorOnClassConstructor1.errors.txt index 63da4b603a..5c02776e7e 100644 --- a/tests/baselines/reference/decoratorOnClassConstructor1.errors.txt +++ b/tests/baselines/reference/decoratorOnClassConstructor1.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts(4,5): error TS1203: Decorators are not valid on this declaration type. - - -==== tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts (1 errors) ==== - declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; - - class C { - @dec constructor() {} - ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1203: Decorators are not valid on this declaration type. +tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts(4,5): error TS1206: Decorators are not valid on this declaration type. + + +==== tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts (1 errors) ==== + declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + + class C { + @dec constructor() {} + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1206: Decorators are not valid on this declaration type. } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassProperty13.errors.txt b/tests/baselines/reference/decoratorOnClassProperty13.errors.txt index f405e6f0bc..519d772cf5 100644 --- a/tests/baselines/reference/decoratorOnClassProperty13.errors.txt +++ b/tests/baselines/reference/decoratorOnClassProperty13.errors.txt @@ -1,17 +1,17 @@ -tests/cases/conformance/decorators/class/property/decoratorOnClassProperty13.ts(4,5): error TS1205: Decorators may not change the type of a member. - Type 'TypedPropertyDescriptor' is not assignable to type 'void | TypedPropertyDescriptor'. - Type 'TypedPropertyDescriptor' is not assignable to type 'TypedPropertyDescriptor'. - Type 'number' is not assignable to type 'string'. - - -==== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty13.ts (1 errors) ==== - declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; - - class C { - @dec prop: string; - ~~~~ -!!! error TS1205: Decorators may not change the type of a member. -!!! error TS1205: Type 'TypedPropertyDescriptor' is not assignable to type 'void | TypedPropertyDescriptor'. -!!! error TS1205: Type 'TypedPropertyDescriptor' is not assignable to type 'TypedPropertyDescriptor'. -!!! error TS1205: Type 'number' is not assignable to type 'string'. +tests/cases/conformance/decorators/class/property/decoratorOnClassProperty13.ts(4,5): error TS1208: Decorators may not change the type of a member. + Type 'TypedPropertyDescriptor' is not assignable to type 'void | TypedPropertyDescriptor'. + Type 'TypedPropertyDescriptor' is not assignable to type 'TypedPropertyDescriptor'. + Type 'number' is not assignable to type 'string'. + + +==== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty13.ts (1 errors) ==== + declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; + + class C { + @dec prop: string; + ~~~~ +!!! error TS1208: Decorators may not change the type of a member. +!!! error TS1208: Type 'TypedPropertyDescriptor' is not assignable to type 'void | TypedPropertyDescriptor'. +!!! error TS1208: Type 'TypedPropertyDescriptor' is not assignable to type 'TypedPropertyDescriptor'. +!!! error TS1208: Type 'number' is not assignable to type 'string'. } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnEnum.errors.txt b/tests/baselines/reference/decoratorOnEnum.errors.txt index 32a0080c56..a5daa50a64 100644 --- a/tests/baselines/reference/decoratorOnEnum.errors.txt +++ b/tests/baselines/reference/decoratorOnEnum.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/decorators/invalid/decoratorOnEnum.ts(4,6): error TS1203: Decorators are not valid on this declaration type. - - -==== tests/cases/conformance/decorators/invalid/decoratorOnEnum.ts (1 errors) ==== - declare function dec(target: T): T; - - @dec - enum E { - ~ -!!! error TS1203: Decorators are not valid on this declaration type. +tests/cases/conformance/decorators/invalid/decoratorOnEnum.ts(4,6): error TS1206: Decorators are not valid on this declaration type. + + +==== tests/cases/conformance/decorators/invalid/decoratorOnEnum.ts (1 errors) ==== + declare function dec(target: T): T; + + @dec + enum E { + ~ +!!! error TS1206: Decorators are not valid on this declaration type. } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnFunctionDeclaration.errors.txt b/tests/baselines/reference/decoratorOnFunctionDeclaration.errors.txt index c5f3b32e24..e46af2da6c 100644 --- a/tests/baselines/reference/decoratorOnFunctionDeclaration.errors.txt +++ b/tests/baselines/reference/decoratorOnFunctionDeclaration.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/decorators/invalid/decoratorOnFunctionDeclaration.ts(4,10): error TS1203: Decorators are not valid on this declaration type. - - -==== tests/cases/conformance/decorators/invalid/decoratorOnFunctionDeclaration.ts (1 errors) ==== - declare function dec(target: T): T; - - @dec - function F() { - ~ -!!! error TS1203: Decorators are not valid on this declaration type. +tests/cases/conformance/decorators/invalid/decoratorOnFunctionDeclaration.ts(4,10): error TS1206: Decorators are not valid on this declaration type. + + +==== tests/cases/conformance/decorators/invalid/decoratorOnFunctionDeclaration.ts (1 errors) ==== + declare function dec(target: T): T; + + @dec + function F() { + ~ +!!! error TS1206: Decorators are not valid on this declaration type. } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnImportEquals1.errors.txt b/tests/baselines/reference/decoratorOnImportEquals1.errors.txt index 8bd8efca04..4c5799dd71 100644 --- a/tests/baselines/reference/decoratorOnImportEquals1.errors.txt +++ b/tests/baselines/reference/decoratorOnImportEquals1.errors.txt @@ -1,17 +1,17 @@ -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(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. +tests/cases/conformance/decorators/invalid/decoratorOnImportEquals1.ts(8,5): error TS1206: Decorators are not valid on this declaration type. + + +==== tests/cases/conformance/decorators/invalid/decoratorOnImportEquals1.ts (1 errors) ==== + declare function dec(target: T): T; + + module M1 { + export var X: number; + } + + module M2 { + @dec + ~~~~ + import X = M1.X; + ~~~~~~~~~~~~~~~~~~~~ +!!! error TS1206: Decorators are not valid on this declaration type. } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnImportEquals2.errors.txt b/tests/baselines/reference/decoratorOnImportEquals2.errors.txt index 9e598cbe53..da2bcdf077 100644 --- a/tests/baselines/reference/decoratorOnImportEquals2.errors.txt +++ b/tests/baselines/reference/decoratorOnImportEquals2.errors.txt @@ -1,14 +1,14 @@ -tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2_1.ts(1,1): error TS1203: Decorators are not valid on this declaration type. - - -==== tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2_1.ts (1 errors) ==== - @dec - ~~~~ - import lib = require('./decoratorOnImportEquals2_0'); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1203: Decorators are not valid on this declaration type. - - declare function dec(target: T): T; -==== tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2_0.ts (0 errors) ==== - export var X; +tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2_1.ts(1,1): error TS1206: Decorators are not valid on this declaration type. + + +==== tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2_1.ts (1 errors) ==== + @dec + ~~~~ + import lib = require('./decoratorOnImportEquals2_0'); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1206: Decorators are not valid on this declaration type. + + declare function dec(target: T): T; +==== tests/cases/conformance/decorators/invalid/decoratorOnImportEquals2_0.ts (0 errors) ==== + export var X; \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnInterface.errors.txt b/tests/baselines/reference/decoratorOnInterface.errors.txt index a4258cf0bd..e6df6e1538 100644 --- a/tests/baselines/reference/decoratorOnInterface.errors.txt +++ b/tests/baselines/reference/decoratorOnInterface.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/decorators/invalid/decoratorOnInterface.ts(4,11): error TS1203: Decorators are not valid on this declaration type. - - -==== tests/cases/conformance/decorators/invalid/decoratorOnInterface.ts (1 errors) ==== - declare function dec(target: T): T; - - @dec - interface I { - ~ -!!! error TS1203: Decorators are not valid on this declaration type. +tests/cases/conformance/decorators/invalid/decoratorOnInterface.ts(4,11): error TS1206: Decorators are not valid on this declaration type. + + +==== tests/cases/conformance/decorators/invalid/decoratorOnInterface.ts (1 errors) ==== + declare function dec(target: T): T; + + @dec + interface I { + ~ +!!! error TS1206: Decorators are not valid on this declaration type. } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnInternalModule.errors.txt b/tests/baselines/reference/decoratorOnInternalModule.errors.txt index 40b4eb7b69..b7a2e83274 100644 --- a/tests/baselines/reference/decoratorOnInternalModule.errors.txt +++ b/tests/baselines/reference/decoratorOnInternalModule.errors.txt @@ -1,12 +1,12 @@ -tests/cases/conformance/decorators/invalid/decoratorOnInternalModule.ts(4,8): error TS1203: Decorators are not valid on this declaration type. - - -==== tests/cases/conformance/decorators/invalid/decoratorOnInternalModule.ts (1 errors) ==== - declare function dec(target: T): T; - - @dec - module M { - ~ -!!! error TS1203: Decorators are not valid on this declaration type. - +tests/cases/conformance/decorators/invalid/decoratorOnInternalModule.ts(4,8): error TS1206: Decorators are not valid on this declaration type. + + +==== tests/cases/conformance/decorators/invalid/decoratorOnInternalModule.ts (1 errors) ==== + declare function dec(target: T): T; + + @dec + module M { + ~ +!!! error TS1206: Decorators are not valid on this declaration type. + } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnTypeAlias.errors.txt b/tests/baselines/reference/decoratorOnTypeAlias.errors.txt index a0f6ba8222..b6add9cb76 100644 --- a/tests/baselines/reference/decoratorOnTypeAlias.errors.txt +++ b/tests/baselines/reference/decoratorOnTypeAlias.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/decorators/invalid/decoratorOnTypeAlias.ts(3,1): error TS1203: Decorators are not valid on this declaration type. - - -==== tests/cases/conformance/decorators/invalid/decoratorOnTypeAlias.ts (1 errors) ==== - declare function dec(target: T): T; - - @dec - ~~~~ - type T = number; - ~~~~~~~~~~~~~~~~ -!!! error TS1203: Decorators are not valid on this declaration type. \ No newline at end of file +tests/cases/conformance/decorators/invalid/decoratorOnTypeAlias.ts(3,1): error TS1206: Decorators are not valid on this declaration type. + + +==== tests/cases/conformance/decorators/invalid/decoratorOnTypeAlias.ts (1 errors) ==== + declare function dec(target: T): T; + + @dec + ~~~~ + type T = number; + ~~~~~~~~~~~~~~~~ +!!! error TS1206: Decorators are not valid on this declaration type. \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnVar.errors.txt b/tests/baselines/reference/decoratorOnVar.errors.txt index 0b7660cc7b..243f1006e6 100644 --- a/tests/baselines/reference/decoratorOnVar.errors.txt +++ b/tests/baselines/reference/decoratorOnVar.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/decorators/invalid/decoratorOnVar.ts(3,1): error TS1203: Decorators are not valid on this declaration type. - - -==== tests/cases/conformance/decorators/invalid/decoratorOnVar.ts (1 errors) ==== - declare function dec(target: T): T; - - @dec - ~~~~ - var x: number; - ~~~~~~~~~~~~~~ -!!! error TS1203: Decorators are not valid on this declaration type. \ No newline at end of file +tests/cases/conformance/decorators/invalid/decoratorOnVar.ts(3,1): error TS1206: Decorators are not valid on this declaration type. + + +==== tests/cases/conformance/decorators/invalid/decoratorOnVar.ts (1 errors) ==== + declare function dec(target: T): T; + + @dec + ~~~~ + var x: number; + ~~~~~~~~~~~~~~ +!!! error TS1206: Decorators are not valid on this declaration type. \ No newline at end of file