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
The following code attempts to unify DepFn (in shapeless 2) with Function1 (in standard library)
the bound type Out cannot be used directly in covariant position unless fully defined (with upper & lower bound), this is a much harder problem which IS NOT in the scope of this ticket. However, this is avoided in the implicit given fn2DepFn[I, O], which fully defined type Out.
/home/peng/git/dottyspike/core/src/main/scala/com/tribbloids/spike/dotty/FnAsDepFn.scala:33:5Found:StringRequired: com.tribbloids.spike.dotty.FnAsDepFn.DepFn[Int, String]#OutExplanation===========Tree:"".+(v)
I tried to show that
String
conforms to
com.tribbloids.spike.dotty.FnAsDepFn.DepFn[Int, String]#Out
but none of the attempts shown below succeeded:
==>String<: com.tribbloids.spike.dotty.FnAsDepFn.DepFn[Int, String]#OutCachedTypeRefCachedTypeRef=falseThe tests were made under the empty constraint
""+ v
/home/peng/git/dottyspike/core/src/main/scala/com/tribbloids/spike/dotty/FnAsDepFn.scala:37:5Found:StringRequired: com.tribbloids.spike.dotty.FnAsDepFn.DepFn[Int, String]#OutExplanation===========Tree:"".+(v)
I tried to show that
String
conforms to
com.tribbloids.spike.dotty.FnAsDepFn.DepFn[Int, String]#Out
but none of the attempts shown below succeeded:
==>String<: com.tribbloids.spike.dotty.FnAsDepFn.DepFn[Int, String]#OutCachedTypeRefCachedTypeRef=falseThe tests were made under the empty constraint
""+ v
/home/peng/git/dottyspike/core/src/main/scala/com/tribbloids/spike/dotty/FnAsDepFn.scala:41:5Found:StringRequired: com.tribbloids.spike.dotty.FnAsDepFn.DepFn[Any, Any]#OutExplanation===========Tree:"".+(v)
I tried to show that
String
conforms to
com.tribbloids.spike.dotty.FnAsDepFn.DepFn[Any, Any]#Out
but none of the attempts shown below succeeded:
==>String<: com.tribbloids.spike.dotty.FnAsDepFn.DepFn[Any, Any]#OutCachedTypeRefCachedTypeRef=falseThe tests were made under the empty constraint
""+ v
Expectation
The underdefined type Out problem should be circumvented if the given can be used, instead, it was ignored after SAM rewriting is attempted with an underdefined type Out
The text was updated successfully, but these errors were encountered:
Compiler version
3.6.2
Minimized code
The following code attempts to unify DepFn (in shapeless 2) with Function1 (in standard library)
the bound
type Out
cannot be used directly in covariant position unless fully defined (with upper & lower bound), this is a much harder problem which IS NOT in the scope of this ticket. However, this is avoided in the implicit givenfn2DepFn[I, O]
, which fully definedtype Out
.Output
Expectation
The underdefined
type Out
problem should be circumvented if thegiven
can be used, instead, it was ignored after SAM rewriting is attempted with an underdefinedtype Out
The text was updated successfully, but these errors were encountered: