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
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Inferencing.scala
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ object Inferencing {
def inferTypeParams(tree: Tree, pt: Type)(implicit ctx: Context): Tree = tree.tpe match {
case tl: TypeLambda =>
val (tl1, tvars) = constrained(tl, tree)
val tree1 = tree.withType(tl1).appliedToTypeTrees(tvars)
var tree1 = AppliedTypeTree(tree.withType(tl1), tvars)
tree1.tpe <:< pt
fullyDefinedType(tree1.tpe, "template parent", tree.pos)
tree1
Expand Down
10 changes: 10 additions & 0 deletions tests/pos/i2637.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
object Hello {
def main(args: Array[String]): Unit = {
sealed trait Wat[T]

implicit def intWat: Wat[Int] = ???
implicit def listWat[T](implicit tWat: Wat[T]): Wat[List[T]] = new Wat{}

def stuff[T](implicit implicitWat: => Wat[List[T]]): Unit = ???
}
}