|
| 1 | +tests/cases/compiler/missingFunctionImplementation.ts(3,3): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 2 | +tests/cases/compiler/missingFunctionImplementation.ts(8,3): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 3 | +tests/cases/compiler/missingFunctionImplementation.ts(16,3): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 4 | +tests/cases/compiler/missingFunctionImplementation.ts(22,10): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 5 | +tests/cases/compiler/missingFunctionImplementation.ts(28,10): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 6 | +tests/cases/compiler/missingFunctionImplementation.ts(33,10): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 7 | +tests/cases/compiler/missingFunctionImplementation.ts(41,10): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 8 | +tests/cases/compiler/missingFunctionImplementation.ts(48,10): error TS2300: Duplicate identifier 'm'. |
| 9 | +tests/cases/compiler/missingFunctionImplementation.ts(49,10): error TS2300: Duplicate identifier 'm'. |
| 10 | +tests/cases/compiler/missingFunctionImplementation.ts(49,10): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 11 | +tests/cases/compiler/missingFunctionImplementation.ts(52,19): error TS2300: Duplicate identifier 'm'. |
| 12 | +tests/cases/compiler/missingFunctionImplementation.ts(57,10): error TS2300: Duplicate identifier 'm'. |
| 13 | +tests/cases/compiler/missingFunctionImplementation.ts(60,19): error TS2300: Duplicate identifier 'm'. |
| 14 | +tests/cases/compiler/missingFunctionImplementation.ts(60,19): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 15 | +tests/cases/compiler/missingFunctionImplementation.ts(65,19): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 16 | +tests/cases/compiler/missingFunctionImplementation.ts(73,19): error TS2393: Duplicate function implementation. |
| 17 | +tests/cases/compiler/missingFunctionImplementation.ts(74,19): error TS2393: Duplicate function implementation. |
| 18 | +tests/cases/compiler/missingFunctionImplementation.ts(75,19): error TS2393: Duplicate function implementation. |
| 19 | +tests/cases/compiler/missingFunctionImplementation.ts(78,19): error TS2393: Duplicate function implementation. |
| 20 | + |
| 21 | + |
| 22 | +==== tests/cases/compiler/missingFunctionImplementation.ts (19 errors) ==== |
| 23 | + |
| 24 | + export class C1 { |
| 25 | + m(): void; |
| 26 | + ~ |
| 27 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 28 | + } |
| 29 | + |
| 30 | + // merged with a namespace |
| 31 | + export class C2 { |
| 32 | + m(): void; |
| 33 | + ~ |
| 34 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 35 | + } |
| 36 | + export namespace C2 { } |
| 37 | + |
| 38 | + |
| 39 | + // merged with a namespace, multiple overloads |
| 40 | + class C3 { |
| 41 | + m(a, b); |
| 42 | + m(a); |
| 43 | + ~ |
| 44 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 45 | + } |
| 46 | + namespace C3 { } |
| 47 | + |
| 48 | + // static methods, multiple overloads |
| 49 | + class C4 { |
| 50 | + static m(a): void; |
| 51 | + ~ |
| 52 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 53 | + } |
| 54 | + |
| 55 | + // static methods, multiple overloads |
| 56 | + class C5 { |
| 57 | + static m(a): void; |
| 58 | + static m(): void; |
| 59 | + ~ |
| 60 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 61 | + } |
| 62 | + |
| 63 | + // merged with namespace, static methods |
| 64 | + class C6 { |
| 65 | + static m(): void; |
| 66 | + ~ |
| 67 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 68 | + } |
| 69 | + namespace C6 { |
| 70 | + } |
| 71 | + |
| 72 | + // merged with namespace, static methods, multiple overloads |
| 73 | + class C7 { |
| 74 | + static m(a): void; |
| 75 | + static m(): void; |
| 76 | + ~ |
| 77 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 78 | + } |
| 79 | + namespace C7 { |
| 80 | + } |
| 81 | + |
| 82 | + // merged with namespace, static methods, duplicate declarations |
| 83 | + class C8 { |
| 84 | + static m(a): void; |
| 85 | + ~ |
| 86 | +!!! error TS2300: Duplicate identifier 'm'. |
| 87 | + static m(a, b): void; |
| 88 | + ~ |
| 89 | +!!! error TS2300: Duplicate identifier 'm'. |
| 90 | + ~ |
| 91 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 92 | + } |
| 93 | + namespace C8 { |
| 94 | + export function m(a?, b?): void { } |
| 95 | + ~ |
| 96 | +!!! error TS2300: Duplicate identifier 'm'. |
| 97 | + } |
| 98 | + |
| 99 | + // merged with namespace, static methods, duplicate declarations |
| 100 | + class C9 { |
| 101 | + static m(a): void { } |
| 102 | + ~ |
| 103 | +!!! error TS2300: Duplicate identifier 'm'. |
| 104 | + } |
| 105 | + namespace C9 { |
| 106 | + export function m(a): void; |
| 107 | + ~ |
| 108 | +!!! error TS2300: Duplicate identifier 'm'. |
| 109 | + ~ |
| 110 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 111 | + } |
| 112 | + |
| 113 | + // merged namespaces |
| 114 | + namespace N10 { |
| 115 | + export function m(a): void; |
| 116 | + ~ |
| 117 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 118 | + } |
| 119 | + namespace N10 { |
| 120 | + export function m(a): void { } |
| 121 | + } |
| 122 | + |
| 123 | + // merged namespaces, duplicate defintions |
| 124 | + namespace N12 { |
| 125 | + export function m(a): void; |
| 126 | + ~ |
| 127 | +!!! error TS2393: Duplicate function implementation. |
| 128 | + export function m(): void; |
| 129 | + ~ |
| 130 | +!!! error TS2393: Duplicate function implementation. |
| 131 | + export function m(a?): void { } |
| 132 | + ~ |
| 133 | +!!! error TS2393: Duplicate function implementation. |
| 134 | + } |
| 135 | + namespace N12 { |
| 136 | + export function m(a): void { } |
| 137 | + ~ |
| 138 | +!!! error TS2393: Duplicate function implementation. |
| 139 | + } |
| 140 | + |
0 commit comments