Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ object GenericSignatures {
if (sym == defn.PairClass && tupleArity(tp) > Definitions.MaxTupleArity)
jsig(defn.TupleXXLClass.typeRef)
else if (isTypeParameterInSig(sym, sym0)) {
assert(!sym.isAliasType, "Unexpected alias type: " + sym)
assert(!sym.isAliasType || sym.info.isLambdaSub, "Unexpected alias type: " + sym)
typeParamSig(sym.name.lastPart)
}
else if (defn.specialErasure.contains(sym))
Expand Down Expand Up @@ -407,7 +407,6 @@ object GenericSignatures {


// only refer to type params that will actually make it into the sig, this excludes:
// * higher-order type parameters
// * type parameters appearing in method parameters
// * type members not visible in an enclosing template
private def isTypeParameterInSig(sym: Symbol, initialSymbol: Symbol)(using Context) =
Expand Down
9 changes: 9 additions & 0 deletions tests/pos/i18769.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
trait Arb[Fx[_]] {
def pure[A](x: A): Fx[A]
}

class PfOps(private val self: Int) extends AnyVal {
def pf[Fy[_]](m: Arb[Fy]): PartialFunction[Int, Fy[Int]] = {
case x => m.pure(x)
}
}