Skip to content

Commit 0e6dcc5

Browse files
committed
Expand macros in Inlining phase
1 parent 292f7e7 commit 0e6dcc5

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
@@ -3586,7 +3586,7 @@ class Typer extends Namer
35863586
}
35873587

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

35913591
/** Does the "contextuality" of the method type `methType` match the one of the prototype `pt`?
35923592
* 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)