File tree 2 files changed +13
-3
lines changed
compiler/src/dotty/tools/dotc/transform
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
- package dotty .tools .dotc
1
+ package dotty .tools
2
+ package dotc
2
3
package transform
3
4
4
5
import ast .{Trees , tpd }
@@ -71,10 +72,11 @@ class VCInlineMethods extends MiniPhase with IdentityDenotTransformer {
71
72
evalOnce(qual) { ev =>
72
73
val ctArgs = ctParams.map(tparam =>
73
74
TypeTree (tparam.typeRef.asSeenFrom(ev.tpe, origCls)))
74
- ref(extensionMeth)
75
+ transformFollowing(
76
+ ref(extensionMeth)
75
77
.appliedToTypeTrees(mtArgs ++ ctArgs)
76
78
.appliedTo(ev)
77
- .appliedToArgss(mArgss)
79
+ .appliedToArgss(mArgss))
78
80
}
79
81
else
80
82
ref(extensionMeth)
Original file line number Diff line number Diff line change
1
+ implicit class Ops [A ](val a : String ) extends AnyVal {
2
+ def foo (e : => String ): Unit = ()
3
+ }
4
+
5
+ def bar (e1 : => String ): Unit = (new Ops (" " )).foo(e1)
6
+ def baz (e2 : => String ): Unit = " " .foo(e2)
7
+
8
+ @ main def Test = baz(" " )
You can’t perform that action at this time.
0 commit comments