Skip to content

Commit 0b4c6e7

Browse files
authored
Merge pull request #14222 from dotty-staging/fix-#14180
Support quoted PolyFunction
2 parents b4d0334 + 2c76078 commit 0b4c6e7

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)