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
-- [E057] TypeMismatchError:-------------------------------------------------1|typeQux[F[_]] =Bar[0, F, Nothing]
|^|Type argument F does not conform to upper bound [_ <:Foo[(0:Int)]] =>>Any|-----------------------------------------------------------------------------|Explanation (enabled by `-explain`)
|---------------------------------------|I tried to show that
|F| conforms to
| [_ <:Foo[(0:Int)]] =>>Any| but none of the attempts shown below succeeded:
||==>F<: [_ <:Foo[(0:Int)]] =>>Any|==> [_] =>>F[_] <: [_ <:Foo[(0:Int)]] =>>Any|==>typebounds [ <:Foo[(0:Int)]] <:typebounds []
|==>Foo[(0:Int)] <:Any=false|==> [_] =>>Any<: [_ <:Foo[(0:Int)]] =>>Any|==>typebounds [ <:Foo[(0:Int)]] <:typebounds []
|==>Foo[(0:Int)] <:Any=false||The tests were made under the empty constraint
-----------------------------------------------------------------------------1 error found
Expectation
One can summon[Foo[0] =:= Any], so Foo[0] <: Any should test true.
The text was updated successfully, but these errors were encountered:
Compiler version
3.6.4
3.7.1-RC1-bin-20250415-06886b0-NIGHTLY
Minimized code
Actual use case
Output
Expectation
One can
summon[Foo[0] =:= Any]
, soFoo[0] <: Any
should test true.The text was updated successfully, but these errors were encountered: