Skip to content

Commit

Permalink
Add reference baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
tinganho committed Jan 21, 2017
1 parent 1e5b7c5 commit 36f6e19
Showing 1 changed file with 107 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
=== tests/cases/conformance/classes/propertyMemberDeclarations/decl.d.ts ===

// name
declare class StaticName {
>StaticName : StaticName

static name: number; // ok
>name : number

name: string; // ok
>name : string
}

declare class StaticNameFn {
>StaticNameFn : StaticNameFn

static name(): string; // ok
>name : () => string

name(): string; // ok
>name : () => string
}

// length
declare class StaticLength {
>StaticLength : StaticLength

static length: number; // ok
>length : number

length: string; // ok
>length : string
}

declare class StaticLengthFn {
>StaticLengthFn : StaticLengthFn

static length(): number; // ok
>length : () => number

length(): number; // ok
>length : () => number
}

// prototype
declare class StaticPrototype {
>StaticPrototype : StaticPrototype

static prototype: number; // ok
>prototype : StaticPrototype

prototype: string; // ok
>prototype : string
}

declare class StaticPrototypeFn {
>StaticPrototypeFn : StaticPrototypeFn

static prototype: any; // ok
>prototype : StaticPrototypeFn

prototype(): any; // ok
>prototype : () => any
}

// caller
declare class StaticCaller {
>StaticCaller : StaticCaller

static caller: number; // ok
>caller : number

caller: string; // ok
>caller : string
}

declare class StaticCallerFn {
>StaticCallerFn : StaticCallerFn

static caller(): any; // ok
>caller : () => any

caller(): any; // ok
>caller : () => any
}

// arguments
declare class StaticArguments {
>StaticArguments : StaticArguments

static arguments: number; // ok
>arguments : number

arguments: string; // ok
>arguments : string
}

declare class StaticArgumentsFn {
>StaticArgumentsFn : StaticArgumentsFn

static arguments(): any; // ok
>arguments : () => any

arguments(): any; // ok
>arguments : () => any
}

0 comments on commit 36f6e19

Please sign in to comment.