generics: disallow variance definition other than in class or interface#278
Conversation
f10eb4d to
6c976f0
Compare
|
Build failures seems unrelated. |
6c976f0 to
4e1a401
Compare
|
I'd like to hear @muglug's opinion whether it makes sense to allow and read @template-covariant above functions and methods. My opinion is that it's not entirely wrong to use that, in a world where you're able to materialize function |
|
Yes, I will have to give it a thought. |
|
|
|
Ok, seems its not supported anywhere, I researched some langs and added this info explicitly into table: https://hrach.dev/posts/variance-elsewhere/ |
|
Please fix the build and I'll merge it (PHP 8 tests are now expected to fail.) It's enough to run GenericsIntegrationTest locally and commit the updated JSON files. |
4e1a401 to
760f027
Compare
|
Done, thanks! |
|
Thank you! |
No description provided.