File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ object Inferencing {
123
123
def inferTypeParams (tree : Tree , pt : Type )(implicit ctx : Context ): Tree = tree.tpe match {
124
124
case tl : TypeLambda =>
125
125
val (tl1, tvars) = constrained(tl, tree)
126
- val tree1 = tree.withType(tl1).appliedToTypeTrees( tvars)
126
+ var tree1 = AppliedTypeTree ( tree.withType(tl1), tvars)
127
127
tree1.tpe <:< pt
128
128
fullyDefinedType(tree1.tpe, " template parent" , tree.pos)
129
129
tree1
Original file line number Diff line number Diff line change
1
+ object Hello {
2
+ def main (args : Array [String ]): Unit = {
3
+ sealed trait Wat [T ]
4
+
5
+ implicit def intWat : Wat [Int ] = ???
6
+ implicit def listWat [T ](implicit tWat : Wat [T ]): Wat [List [T ]] = new Wat {}
7
+
8
+ def stuff [T ](implicit implicitWat : => Wat [List [T ]]): Unit = ???
9
+ }
10
+ }
You can’t perform that action at this time.
0 commit comments