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
scala>importcompiletime.ops.any._
scala> summon[""==""=:=true]
valres1:true=:=true= generalized constraint
scala>valt:""==""=true1|valt:""==""=true|^|Type argument ("":String) does not conform to upper bound AnyVal1|valt:""==""=true|^|Type argument ("":String) does not conform to upper bound AnyVal
expectation
EDIT: the second example behaves according to its definition of type ==[X <: AnyVal, Y <: AnyVal] <: Boolean. However it should behave like the first. The type signature should be changed so that t can be typed