Skip to content

It should infer implemented method parameter type from extends parent class #44642

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

Closed
zyf0330 opened this issue Jun 18, 2021 · 1 comment
Closed

Comments

@zyf0330
Copy link

zyf0330 commented Jun 18, 2021

Bug Report

πŸ”Ž Search Terms

when extends abstract class,
method parameter type cannot be inferred.

πŸ•— Version & Regression Information

  • This is a crash

⏯ Playground Link

Playground link with relevant code

πŸ™ Actual behavior

compile without error

πŸ™‚ Expected behavior

compile fail caused by line 36
line 30: data shoule be inferred as Data<Type.A>

@MartinJohns
Copy link
Contributor

Duplicate of #31470 / #1373. Used search terms: parameter type override infer

@zyf0330 zyf0330 closed this as completed Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants