Incorrect type inference when using call
in Records
#3558
Labels
feature
Proposed language feature that solves one or more problems
Consider the following:
Currently, the type of
value
is inferred asdynamic
. But this is incorrect.Writing:
final value = foo.call<int>(42)
fixes the type-inference issue.The text was updated successfully, but these errors were encountered: