You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- [E172] TypeError:----------------------------------------------------------1|summon[TestTC2[TestMatch[Foo][Int]]]
| ^
|Nogiveninstance of typeTestTC2[TestMatch[Foo][Int]] was found for parameter x of method summon in objectPredef.
|Ifound:
||TestTC2.inst[TestMatch[Foo], Int](
|/* missing */summon[TestTC1[TestMatch[TestMatch[Foo]][Int]]])
||But no implicit values were found that matchtypeTestTC1[TestMatch[TestMatch[Foo]][Int]].
Expectation
The implicit search should discover TestTC1.inst as a valid candidate for the using parameter of TestTC2.inst
The text was updated successfully, but these errors were encountered:
Sorry, never mind on this one, the summon part of my reproduction code above doesn't make sense. It's correct that there's no instance of TestTC1[TestMatch[TestMatch[Foo]][Int]] because that would be a TestTC1[TestMatch[Bar][Int]], and there's no case in the match type for Bar
There is some issue in my codebase similar to this, but I'm going to close this until I've minimized it. In the meantime, I'm confused why this compiles in Scala 3.4.2...
Compiler version
3.5.0-RC1, the issue is not present in 3.4.2
Minimized code
Output
Expectation
The implicit search should discover
TestTC1.inst
as a valid candidate for theusing
parameter ofTestTC2.inst
The text was updated successfully, but these errors were encountered: