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
1779
1779
1780
1780
protected def makeImplicitFunction (tree : untpd.Tree , pt : Type )(implicit ctx : Context ): Tree = {
1781
1781
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)
1784
1783
typr.println(i " make implicit function $tree / $pt ---> $ifun" )
1785
1784
typed(ifun, pt)
1786
1785
}
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