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|typeBar=Foo[?>:Int<:String]
|^|Type argument >:Int<:String does not conform to upper bound String|-----------------------------------------------------------------------------|Explanation (enabled by `-explain`)
|---------------------------------------|I tried to show that
|>:Int<:String| conforms to
|String| but the comparison trace ended with`false`:||==>typebounds [ >:Int<:String] <:String|==>typebounds [ >:Int<:String] <:String|==>String<:String (left is approximated)
|<==String<:String (left is approximated) =true|<==typebounds [ >:Int<:String] <:String=true|<==typebounds [ >:Int<:String] <:String=true||The tests were made under the empty constraint
-----------------------------------------------------------------------------
Expectation
A comparison trace that actually ends with false, or some more correct error.
The text was updated successfully, but these errors were encountered:
Compiler version
3.1.3, 3.2.0-RC1
Minimized code
Output
Expectation
A comparison trace that actually ends with
false
, or some more correct error.The text was updated successfully, but these errors were encountered: