Infer function expressions in matching contexts (#514)

* legalizes omitting types on function expressions within function type contexts
* legalizes omitting any number of arguments
This commit is contained in:
Daniel Wirtz
2019-02-27 21:45:36 +01:00
committed by GitHub
parent 2945af6557
commit e8b0767143
29 changed files with 1349 additions and 701 deletions

View File

@ -4,7 +4,7 @@
(type $ii (func (param i32) (result i32)))
(memory $0 0)
(table $0 2 funcref)
(elem (i32.const 0) $null $getter-call/C#get:x~anonymous|1)
(elem (i32.const 0) $null $getter-call/C#get:x~anonymous|0)
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
(global $~lib/argc (mut i32) (i32.const 0))
@ -74,7 +74,7 @@
global.set $~lib/allocator/arena/offset
local.get $1
)
(func $getter-call/C#get:x~anonymous|1 (; 1 ;) (type $i) (result i32)
(func $getter-call/C#get:x~anonymous|0 (; 1 ;) (type $i) (result i32)
i32.const 42
)
(func $getter-call/test (; 2 ;) (type $i) (result i32)