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
objectdata {
traitOfType[T]
caseobjectIntTextendsOfType[Int]
caseobjectDoubleTextendsOfType[Double]
caseobjectFloatTextendsOfType[Float]
typeDSeq[X] = scala.collection.immutable.AbstractSeq[X]
caseclassColumnName[T](n:String, t: OfType[T])
caseclassColumn[T,F[_]<:DSeq[_]](n:F[T], of: ColumnName[T])
}
defmin4[T,F[_]<:data.DSeq[T]](col: data.Column[T,F])(usingOrdering[T]):T= {
col match {
case c:data.Column[Int,_] => c.n.min[T](Ordering[T])
case _:data.Column[Double,_] =>???case _:data.Column[Float,_] =>???
}
}
Output
splotly.compile dotty.tools.dotc.core.TypeError: bad parameter reference gg.Exp4ColumnOps.data.Column#F at pruneErasedDefs
the parameter is typeF in classColumn but the prefix gg.Exp4ColumnOps.data.Column
does not define any corresponding arguments.
Expectation
I expected compilation to succeed with a warning that run-time comparison cannot be done due to erasure or some other error.
Fixesscala#11057
We had a case of getting the info of C#F at pattern matching, where `F`
as a paremeter of `C`. In this case, no recomputation of the argument
via argInfo is needed; the info is the info of `F` directly.
Minimized code
May be (marginally) related to #11056.
Output
Expectation
I expected compilation to succeed with a warning that run-time comparison cannot be done due to erasure or some other error.
Full stacktrace
<\details>
The text was updated successfully, but these errors were encountered: