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
Aside: I thought there might be a better way to define the Identity type, but I can't see in the documentation any way to declare a templated function type directly. (But I would expect to be able successfully instantiate a templated type regardless of how it was declared.)
The text was updated successfully, but these errors were encountered:
Reproduction:
As far as I understand, the type of
f
should befunction(number): number
here.See also discussion in closure-compiler-discuss@.
Aside: I thought there might be a better way to define the
Identity
type, but I can't see in the documentation any way to declare a templatedfunction
type directly. (But I would expect to be able successfully instantiate a templated type regardless of how it was declared.)The text was updated successfully, but these errors were encountered: