Skip to content

Conversation

prolativ
Copy link
Contributor

Fixes #21757

@prolativ prolativ requested a review from smarter October 16, 2024 14:01
@smarter smarter enabled auto-merge October 16, 2024 14:05
@prolativ
Copy link
Contributor Author

This seems to fix the problem, assuming usage of Conversion instances for implicit conversions is expected to work if the instance is defined as implicit def rather than given.
The specification https://docs.scala-lang.org/scala3/reference/contextual/conversions.html mentions only given instances but I assume this was intended to take implicit into account.
Anyway, this already works with implicit for simpler cases

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.

Conversion behave differently depending on if implicit def or given is used
3 participants