|
| 1 | +tests/cases/compiler/overloadConsecutiveness.ts(3,10): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 2 | +tests/cases/compiler/overloadConsecutiveness.ts(3,14): error TS1144: '{' or ';' expected. |
| 3 | +tests/cases/compiler/overloadConsecutiveness.ts(3,25): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 4 | +tests/cases/compiler/overloadConsecutiveness.ts(4,10): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 5 | +tests/cases/compiler/overloadConsecutiveness.ts(4,14): error TS1144: '{' or ';' expected. |
| 6 | +tests/cases/compiler/overloadConsecutiveness.ts(5,10): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 7 | +tests/cases/compiler/overloadConsecutiveness.ts(5,17): error TS1128: Declaration or statement expected. |
| 8 | +tests/cases/compiler/overloadConsecutiveness.ts(5,28): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 9 | +tests/cases/compiler/overloadConsecutiveness.ts(8,2): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 10 | +tests/cases/compiler/overloadConsecutiveness.ts(8,6): error TS1144: '{' or ';' expected. |
| 11 | +tests/cases/compiler/overloadConsecutiveness.ts(8,8): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 12 | +tests/cases/compiler/overloadConsecutiveness.ts(9,2): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 13 | +tests/cases/compiler/overloadConsecutiveness.ts(9,6): error TS1144: '{' or ';' expected. |
| 14 | +tests/cases/compiler/overloadConsecutiveness.ts(10,2): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 15 | +tests/cases/compiler/overloadConsecutiveness.ts(10,9): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. |
| 16 | +tests/cases/compiler/overloadConsecutiveness.ts(10,11): error TS2391: Function implementation is missing or not immediately following the declaration. |
| 17 | + |
| 18 | + |
| 19 | +==== tests/cases/compiler/overloadConsecutiveness.ts (16 errors) ==== |
| 20 | + // Making sure compiler won't break with declarations that are consecutive in the AST but not consecutive in the source. Syntax errors intentional. |
| 21 | + |
| 22 | + function f1(), function f1(); |
| 23 | + ~~ |
| 24 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 25 | + ~ |
| 26 | +!!! error TS1144: '{' or ';' expected. |
| 27 | + ~~ |
| 28 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 29 | + function f2(), function f2() {} |
| 30 | + ~~ |
| 31 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 32 | + ~ |
| 33 | +!!! error TS1144: '{' or ';' expected. |
| 34 | + function f3() {}, function f3(); |
| 35 | + ~~ |
| 36 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 37 | + ~ |
| 38 | +!!! error TS1128: Declaration or statement expected. |
| 39 | + ~~ |
| 40 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 41 | + |
| 42 | + class C { |
| 43 | + m1(), m1(); |
| 44 | + ~~ |
| 45 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 46 | + ~ |
| 47 | +!!! error TS1144: '{' or ';' expected. |
| 48 | + ~~ |
| 49 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 50 | + m2(), m2() {} |
| 51 | + ~~ |
| 52 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 53 | + ~ |
| 54 | +!!! error TS1144: '{' or ';' expected. |
| 55 | + m3() {}, m3(); |
| 56 | + ~~ |
| 57 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 58 | + ~ |
| 59 | +!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. |
| 60 | + ~~ |
| 61 | +!!! error TS2391: Function implementation is missing or not immediately following the declaration. |
| 62 | + } |
| 63 | + |
0 commit comments