Skip to content

Commit 2c76078

Browse files
committed
Support quoted PolyFunction
Fixes #14180
1 parent b4d0334 commit 2c76078

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

compiler/src/dotty/tools/dotc/quoted/PickledQuotes.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,6 @@ object PickledQuotes {
9191
val quotedType = typeHole(idx, reifiedArgs)
9292
PickledQuotes.quotedTypeToTree(quotedType)
9393
}
94-
case tree: Select =>
95-
// Retain selected members
96-
val qual = transform(tree.qualifier)
97-
qual.select(tree.symbol).withSpan(tree.span)
98-
9994
case tree =>
10095
if tree.isDef then
10196
tree.symbol.annotations = tree.symbol.annotations.map {

tests/pos-macros/i14180/Macro_1.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import scala.quoted._
2+
def impl(using Quotes): Expr[Unit] =
3+
'{ ([V] => (v: V) => println(v)).apply[Int](2) }

tests/pos-macros/i14180/Test_2.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
inline def foo = ${ impl }
2+
def example = foo

0 commit comments

Comments
 (0)