File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 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
23package transform
34
45import ast .{Trees , tpd }
@@ -71,10 +72,11 @@ class VCInlineMethods extends MiniPhase with IdentityDenotTransformer {
7172 evalOnce(qual) { ev =>
7273 val ctArgs = ctParams.map(tparam =>
7374 TypeTree (tparam.typeRef.asSeenFrom(ev.tpe, origCls)))
74- ref(extensionMeth)
75+ transformFollowing(
76+ ref(extensionMeth)
7577 .appliedToTypeTrees(mtArgs ++ ctArgs)
7678 .appliedTo(ev)
77- .appliedToArgss(mArgss)
79+ .appliedToArgss(mArgss))
7880 }
7981 else
8082 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