File tree Expand file tree Collapse file tree 5 files changed +30
-1
lines changed Expand file tree Collapse file tree 5 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ export class Resolver extends DiagnosticEmitter {
392
392
break ;
393
393
}
394
394
case ParameterKind . Rest : {
395
- assert ( i == numParameters ) ;
395
+ assert ( i == numParameters - 1 ) ;
396
396
hasRest = true ;
397
397
break ;
398
398
}
Original file line number Diff line number Diff line change
1
+ (module
2
+ (type $i32_=>_i32 (func (param i32 ) (result i32 )))
3
+ (global $issues/2707/func (mut i32 ) (i32.const 32 ))
4
+ (global $~lib/memory/__data_end i32 (i32.const 44 ))
5
+ (global $~lib/memory/__stack_pointer (mut i32 ) (i32.const 32812 ))
6
+ (global $~lib/memory/__heap_base i32 (i32.const 32812 ))
7
+ (memory $0 1 )
8
+ (data $0 (i32.const 12 ) " \1c\00\00\00\00\00\00\00\00\00\00\00\05\00\00\00\08\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00 " )
9
+ (table $0 2 2 funcref )
10
+ (elem $0 (i32.const 1 ) $start:issues/2707~anonymous|0 )
11
+ (export " memory" (memory $0 ))
12
+ (func $start:issues/2707~anonymous|0 (param $args i32 ) (result i32 )
13
+ i32.const 1
14
+ return
15
+ )
16
+ )
Original file line number Diff line number Diff line change
1
+ {
2
+ "asc_flags" : []
3
+ }
Original file line number Diff line number Diff line change
1
+ (module
2
+ (memory $0 1 )
3
+ (data $0 (i32.const 1036 ) " \1c " )
4
+ (data $0.1 (i32.const 1048 ) " \05\00\00\00\08\00\00\00\01 " )
5
+ (export " memory" (memory $0 ))
6
+ )
Original file line number Diff line number Diff line change
1
+ // should not crash
2
+ let func : ( ...args : i32 [ ] ) => i32 = ( ...args : i32 [ ] ) => {
3
+ return 1 ;
4
+ } ;
You can’t perform that action at this time.
0 commit comments