File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1779,8 +1779,7 @@ class Typer extends Namer
17791779
17801780 protected def makeImplicitFunction (tree : untpd.Tree , pt : Type )(implicit ctx : Context ): Tree = {
17811781 val defn .FunctionOf (formals, _, true ) = pt.dropDependentRefinement
1782- val paramTypes = formals.map(fullyDefinedType(_, " implicit function parameter" , tree.pos))
1783- val ifun = desugar.makeImplicitFunction(paramTypes, tree)
1782+ val ifun = desugar.makeImplicitFunction(formals, tree)
17841783 typr.println(i " make implicit function $tree / $pt ---> $ifun" )
17851784 typed(ifun, pt)
17861785 }
Original file line number Diff line number Diff line change 1+ object Foo {
2+
3+ def map [E ](f : implicit E => Int ): (implicit E => Int ) = ???
4+
5+ implicit def i : Int = ???
6+
7+ def f : implicit Int => Int = ???
8+
9+ val a : Int = map(f)
10+
11+ }
You can’t perform that action at this time.
0 commit comments