Skip to content
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

Wrong .class is set when using method typaram #493

Closed
yhara opened this issue Jul 8, 2023 · 0 comments · Fixed by #495
Closed

Wrong .class is set when using method typaram #493

yhara opened this issue Jul 8, 2023 · 0 comments · Fixed by #495
Labels

Comments

@yhara
Copy link
Collaborator

yhara commented Jul 8, 2023

Given

class A                                                             
  def self.foo<S>                                                   
    p Array<S>.new.class                                            
  end                                                               
end                                                                 
A.foo<Int> 

Expected

prints Array<Int>

Actual

prints Array<Object>

@yhara yhara added the bug label Jul 8, 2023
yhara added a commit that referenced this issue Jul 24, 2023
fix #493: pass method-wise type arguments to methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant