32 lines
514 B
Text
32 lines
514 B
Text
|
=== tests/cases/compiler/es6ClassTest4.ts ===
|
||
|
declare class Point
|
||
|
>Point : Point
|
||
|
{
|
||
|
x: number;
|
||
|
>x : number
|
||
|
|
||
|
y: number;
|
||
|
>y : number
|
||
|
|
||
|
add(dx: number, dy: number): Point;
|
||
|
>add : (dx: number, dy: number) => Point
|
||
|
>dx : number
|
||
|
>dy : number
|
||
|
>Point : Point
|
||
|
|
||
|
mult(p: Point): Point;
|
||
|
>mult : (p: Point) => Point
|
||
|
>p : Point
|
||
|
>Point : Point
|
||
|
>Point : Point
|
||
|
|
||
|
static origin: Point;
|
||
|
>origin : Point
|
||
|
>Point : Point
|
||
|
|
||
|
constructor(x: number, y: number);
|
||
|
>x : number
|
||
|
>y : number
|
||
|
}
|
||
|
|