T.self_type
does not work for union types (e.g. T::Boolean#tap
returns TrueClass
)
#7890
Labels
bug
Something isn't working
Input
→ View on sorbet.run
Observed output
Expected behavior
The
T.self_type
should respect the union type. So instead of just retuning a (random?!) type from the union, it should return the whole union type definition.The text was updated successfully, but these errors were encountered: