Skip to content

Commit a8bbd26

Browse files
committed
Expand macros in Inlining phase
1 parent c12f717 commit a8bbd26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3598,7 +3598,7 @@ class Typer extends Namer
35983598
}
35993599

36003600
// Overridden in InlineTyper
3601-
def suppressInline(using Context): Boolean = ctx.isAfterTyper
3601+
def suppressInline(using Context): Boolean = ctx.isAfterTyper && ctx.phase.phaseName != "inlining"
36023602

36033603
/** Does the "contextuality" of the method type `methType` match the one of the prototype `pt`?
36043604
* This is the case if

library/src/scala/compiletime/package.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ package object compiletime {
123123
* @tparam T the tuple containing the types of the values to be summoned
124124
* @return the given values typed as elements of the tuple
125125
*/
126-
inline def summonAll[T <: Tuple]: Tuple.Widen[T] =
126+
transparent inline def summonAll[T <: Tuple]: Tuple.Widen[T] =
127127
val res =
128128
inline erasedValue[T] match
129129
case _: EmptyTuple => EmptyTuple

0 commit comments

Comments
 (0)