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
Right now, any return type annotations on behaviors are turned into ordinary return type annotations. However, if the user wants to assert that the return type is a DuckType, this won't work.
For example, you might want to declare
@duck_typestruct Container{T, N}
functionsimilar(This, ::Int...)::Container{T, Any)
end
But similar won't return a literal `Container`. It will return some AbstractArray which fails a naive type assert.
The text was updated successfully, but these errors were encountered:
Right now, any return type annotations on behaviors are turned into ordinary return type annotations. However, if the user wants to assert that the return type is a DuckType, this won't work.
For example, you might want to declare
The text was updated successfully, but these errors were encountered: