8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
→ View on sorbet.run
# typed: strict class A extend T::Generic E = type_member end A.new # No error? A should require type argument like `A[Foo]`
No errors! Great job.
Sorbet treats this as A[T.untyped]
A[T.untyped]
I would expect Sorbet to raise an error saying A is a generic type and requires a type argument like A[Foo].
A
A[Foo]
The text was updated successfully, but these errors were encountered:
+1, # typed: strong also doesn’t raise any error for usages of these untyped generic classes.
# typed: strong
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Input
→ View on sorbet.run
Observed output
Sorbet treats this as
A[T.untyped]
Expected behavior
I would expect Sorbet to raise an error saying
A
is a generic type and requires a type argument likeA[Foo]
.The text was updated successfully, but these errors were encountered: