lang F1 6: contextually type pack-fn prefix args (mapper lambda)
lowerPackFnCall lowered the runtime prefix args with no target_type, so a lambda arg (mapper: Closure(...) -> ...) could not infer its param types. Now set target_type to the param type while lowering each prefix arg. With the existing value-projection call-arg spread, mapper(..sources.get) works: the lambda is contextually typed and the projected values spread into the call. examples/211 ((a,b)=>a+b over two sources -> 42). 246 + unit green.
This commit is contained in:
1
tests/expected/211-mapper-projection-spread.exit
Normal file
1
tests/expected/211-mapper-projection-spread.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
tests/expected/211-mapper-projection-spread.txt
Normal file
1
tests/expected/211-mapper-projection-spread.txt
Normal file
@@ -0,0 +1 @@
|
||||
42
|
||||
Reference in New Issue
Block a user