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

Don't bind foreign type parameters in definition mode #11658

Merged
merged 1 commit into from
May 9, 2024

Conversation

Simn
Copy link
Member

@Simn Simn commented May 6, 2024

This changes link so that it no longer binds monomorphs to type parameters that are not known in the current context. For now we're only doing this in the new definition mode.

This likely breaks some code.

Closes #11624

@Simn
Copy link
Member Author

Simn commented May 8, 2024

@kLabz Could you check how badly this breaks stuff? I'm not sure how prevalent cases like in #11624 really care, and ultimately it doesn't really matter because such code is clearly broken, but I'd still like to make people aware of this change.

@kLabz
Copy link
Contributor

kLabz commented May 8, 2024

Things look ok so far, will test more this afternoon

Edit:

  • Shiro projects ✅
  • Own projects ✅
  • vshaxe / haxe LSP ✅
  • misc weird projects ✅

@kLabz
Copy link
Contributor

kLabz commented May 9, 2024

Seems to be fine :)

@Simn Simn merged commit 9d2007b into development May 9, 2024
99 checks passed
@Simn Simn deleted the valid_redefinition_rework_2 branch May 9, 2024 08:06
@Simn
Copy link
Member Author

Simn commented May 9, 2024

I thought you'd come across a case from #11624 in the wild because I thought that's where those came from, but I won't complain!

@kLabz
Copy link
Contributor

kLabz commented May 9, 2024

Either that problem was probably fixed on user code since I opened the issue, or that was a report from a private project. Either way, it doesn't seem to be a common thing :)

@skial skial mentioned this pull request May 9, 2024
1 task
@kLabz
Copy link
Contributor

kLabz commented May 9, 2024

Apparently there's such case in tink: https://try.haxe.org/#2D89fEF9 (this PR still isn't available on try haxe)

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

Successfully merging this pull request may close these issues.

Missing type parameter info when return type inferred from interface
2 participants