forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
107 additions
and
0 deletions.
There are no files selected for viewing
107 changes: 107 additions & 0 deletions
107
tests/baselines/reference/staticPropertyNameConflictsInAmbientContext.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
|