You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Types passed to a higher-order function can get mixed up. #123
I didn't realize that Flow analyzes function calls context insensitively, and that one has to annotate explicitly for polymorphism. Thanks for the tip, it explains a lot in my examples.
Activity
avikchaudhuri commentedon Nov 26, 2014
Same issue of Flow's inference not being polymorphic enough. Seems like we need to incorporate your CFA2 work into our analysis! :)
dimvar commentedon Nov 26, 2014
I didn't realize that Flow analyzes function calls context insensitively, and that one has to annotate explicitly for polymorphism. Thanks for the tip, it explains a lot in my examples.
gcnew commentedon Dec 9, 2016
Is the following another instance of this issue?
lukeapage commentedon Jan 23, 2020
Adding typing to the hof does fix it.
https://flow.org/try/#0FAMwrgdgxgLglgewgAgIYAd0B4AqAaZAVQD4AKEALlJwEoBeYwggDwtosOQG9hlkAnAKYww-FCFLMaAbmABfYADdU-ZFFQAbDQEZkdNJnKRYiCJJrcBw0SmbIAtMm3TkcgtoBMAZhlKVazQ0PPQN0I2h4JHNLIRExZDsAfmQAcgBHAHdBfhTkClTUABMAZxAUlzdkEE1iwV91LV1HAFZpIA
Should this just be closed?
SamChou19815 commentedon Jul 30, 2022
Flow decides to require annotation for polymorphic functions a long time ago.