Skip to content

Ability to specify declaration site variance #466

New issue

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

Open
DetachHead opened this issue May 20, 2023 · 0 comments · May be fixed by #846
Open

Ability to specify declaration site variance #466

DetachHead opened this issue May 20, 2023 · 0 comments · May be fixed by #846

Comments

@DetachHead
Copy link
Collaborator

DetachHead commented May 20, 2023

We can't use In/Out modifiers because that's a syntax error

class A[Out[T]]: ...
           ^
SyntaxError: invalid syntax

So what about semantic naming for type vars? in_T/out_T?

@KotlinIsland KotlinIsland changed the title In and Out special forms for specifying variance In and Out special forms for specifying declaration site variance Jun 15, 2023
@KotlinIsland KotlinIsland changed the title In and Out special forms for specifying declaration site variance Ability to specify declaration site variance Apr 26, 2024
@KotlinIsland KotlinIsland linked a pull request Jan 2, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant