1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
=== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantSemicolonInClass1.ts ===
class a {
>a : a
//constructor ();
constructor (n: number);
>n : number
constructor (s: string);
>s : string
constructor (ns: any) {
>ns : any
}
public pgF() { };
>pgF : () => void
public pv;
>pv : any
public get d() {
>d : number
return 30;
>30 : 30
}
public set d() {
>d : number
}
public static get p2() {
>p2 : { x: number; y: number; }
return { x: 30, y: 40 };
>{ x: 30, y: 40 } : { x: number; y: number; }
>x : number
>30 : 30
>y : number
>40 : 40
}
private static d2() {
>d2 : () => void
}
private static get p3() {
>p3 : string
return "string";
>"string" : "string"
}
private pv3;
>pv3 : any
private foo(n: number): string;
>foo : { (n: number): string; (s: string): string; }
>n : number
private foo(s: string): string;
>foo : { (n: number): string; (s: string): string; }
>s : string
private foo(ns: any) {
>foo : { (n: number): string; (s: string): string; }
>ns : any
return ns.toString();
>ns.toString() : any
>ns.toString : any
>ns : any
>toString : any
}
}
|