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

compile error by passing a block for an invalid method #424

Closed
yhara opened this issue Nov 17, 2022 · 0 comments · Fixed by #425
Closed

compile error by passing a block for an invalid method #424

yhara opened this issue Nov 17, 2022 · 0 comments · Fixed by #425
Labels

Comments

@yhara
Copy link
Collaborator

yhara commented Nov 17, 2022

Given

class A
  def foo
  end
end                                                                               
A.new.foo{}  

Got

thread 'main' panicked at 'called Option::unwrap() on a None value', lib/skc_ast2hir/src/type_inference/method_call_inf.rs:66:51

Expected

no panic

@yhara yhara added the bug label Nov 17, 2022
@yhara yhara mentioned this issue Nov 17, 2022
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