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
Context:
I extracted a type into a type definition:
type FieldName = $Keys<Fields>
and then did a Replace All for $Keys<Fields> with FieldName. This has changed the definition as well. Luckily it was caught in code review, but I was surprised that flow had not reported an error
The text was updated successfully, but these errors were encountered:
type A = A defines a generic with an "unknown" type. In your example, view the AST tab and look for "type": "GenericTypeAnnotation". Here's another example illustrating the behavior in question.
https://flow.org/try/#0C4TwDgpgBAglC8sDcAoFBjA9gOwM7CgEMAuWBKAbxSiNIHIBGOlAXySA
Context:
I extracted a type into a type definition:
and then did a Replace All for
$Keys<Fields>
withFieldName
. This has changed the definition as well. Luckily it was caught in code review, but I was surprised that flow had not reported an errorThe text was updated successfully, but these errors were encountered: