|
| 1 | +=== tests/cases/compiler/parameterPropertyInConstructorWithPrologues.ts === |
| 2 | +// https://github.com/microsoft/TypeScript/issues/48671 |
| 3 | + |
| 4 | +class Foo1 { |
| 5 | +>Foo1 : Symbol(Foo1, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0)) |
| 6 | + |
| 7 | + constructor(private A: string) { |
| 8 | +>A : Symbol(Foo1.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 3, 14)) |
| 9 | + |
| 10 | + "ngInject1"; |
| 11 | + } |
| 12 | +} |
| 13 | + |
| 14 | +class Foo2 { |
| 15 | +>Foo2 : Symbol(Foo2, Decl(parameterPropertyInConstructorWithPrologues.ts, 6, 1)) |
| 16 | + |
| 17 | + constructor(private A: string, private B: string) { |
| 18 | +>A : Symbol(Foo2.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 9, 14)) |
| 19 | +>B : Symbol(Foo2.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 9, 32)) |
| 20 | + |
| 21 | + "ngInject1"; |
| 22 | + "ngInject2"; |
| 23 | + } |
| 24 | +} |
| 25 | + |
| 26 | +class Foo3 { |
| 27 | +>Foo3 : Symbol(Foo3, Decl(parameterPropertyInConstructorWithPrologues.ts, 13, 1)) |
| 28 | + |
| 29 | + constructor(private A: string, private B: string, private C: string) { |
| 30 | +>A : Symbol(Foo3.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 16, 14)) |
| 31 | +>B : Symbol(Foo3.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 16, 32)) |
| 32 | +>C : Symbol(Foo3.C, Decl(parameterPropertyInConstructorWithPrologues.ts, 16, 51)) |
| 33 | + |
| 34 | + "ngInject1"; |
| 35 | + "ngInject2"; |
| 36 | + } |
| 37 | +} |
| 38 | + |
| 39 | +class Foo4 { |
| 40 | +>Foo4 : Symbol(Foo4, Decl(parameterPropertyInConstructorWithPrologues.ts, 20, 1)) |
| 41 | + |
| 42 | + constructor(private A: string) { |
| 43 | +>A : Symbol(Foo4.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 23, 14)) |
| 44 | + |
| 45 | + "ngInject1"; |
| 46 | + console.log("hi"); |
| 47 | +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 48 | +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) |
| 49 | +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 50 | + } |
| 51 | +} |
| 52 | + |
| 53 | +class Foo5 { |
| 54 | +>Foo5 : Symbol(Foo5, Decl(parameterPropertyInConstructorWithPrologues.ts, 27, 1)) |
| 55 | + |
| 56 | + constructor(private A: string, private B: string) { |
| 57 | +>A : Symbol(Foo5.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 30, 14)) |
| 58 | +>B : Symbol(Foo5.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 30, 32)) |
| 59 | + |
| 60 | + "ngInject1"; |
| 61 | + "ngInject2"; |
| 62 | + console.log("hi"); |
| 63 | +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 64 | +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) |
| 65 | +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 66 | + } |
| 67 | +} |
| 68 | + |
| 69 | +class Foo6 { |
| 70 | +>Foo6 : Symbol(Foo6, Decl(parameterPropertyInConstructorWithPrologues.ts, 35, 1)) |
| 71 | + |
| 72 | + constructor(private A: string, private B: string, private C: string) { |
| 73 | +>A : Symbol(Foo6.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 38, 14)) |
| 74 | +>B : Symbol(Foo6.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 38, 32)) |
| 75 | +>C : Symbol(Foo6.C, Decl(parameterPropertyInConstructorWithPrologues.ts, 38, 51)) |
| 76 | + |
| 77 | + "ngInject1"; |
| 78 | + "ngInject2"; |
| 79 | + console.log("hi"); |
| 80 | +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 81 | +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) |
| 82 | +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 83 | + } |
| 84 | +} |
| 85 | + |
0 commit comments