forked from sorbet/sorbet
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detailed explanation for T.all type errors (sorbet#7832)
* add error details for T.all * PR comments * more test cases
- Loading branch information
1 parent
da74886
commit 5fe5714
Showing
3 changed files
with
153 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# typed: true | ||
|
||
extend T::Sig | ||
|
||
module M1 | ||
end | ||
|
||
module M2 | ||
end | ||
|
||
module M3 | ||
end | ||
|
||
module M4 | ||
end | ||
|
||
class C | ||
end | ||
|
||
class C1 | ||
include M1 | ||
end | ||
|
||
class C2 | ||
include M2 | ||
end | ||
|
||
class C124 | ||
include M1 | ||
include M2 | ||
include M4 | ||
end | ||
|
||
class C123 | ||
include M1 | ||
include M2 | ||
include M3 | ||
end | ||
|
||
class C134 | ||
include M1 | ||
include M3 | ||
include M4 | ||
end | ||
|
||
T.let(C.new, T.all(M1, M2)) | ||
T.let(C1.new, T.all(M1, M2)) | ||
T.let(C2.new, T.all(M1, M2)) | ||
T.let(C1.new, T.all(M1, M2, M3, M4)) | ||
T.let(C123.new, T.all(M1, M2, M3, M4)) | ||
T.let(C124.new, T.all(M1, M2, M3, M4)) | ||
T.let(C134.new, T.all(M1, M2, M3, M4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters