Skip to content

Commit 13a6196

Browse files
committed
Expand macros in Inlining phase
1 parent 1ed478c commit 13a6196

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
@@ -3615,7 +3615,7 @@ class Typer extends Namer
36153615
}
36163616

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

36203620
/** Does the "contextuality" of the method type `methType` match the one of the prototype `pt`?
36213621
* 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
@@ -129,7 +129,7 @@ package object compiletime {
129129
* @tparam T the tuple containing the types of the values to be summoned
130130
* @return the given values typed as elements of the tuple
131131
*/
132-
inline def summonAll[T <: Tuple]: Tuple.Widen[T] =
132+
transparent inline def summonAll[T <: Tuple]: Tuple.Widen[T] =
133133
val res =
134134
inline erasedValue[T] match
135135
case _: EmptyTuple => EmptyTuple

0 commit comments

Comments
 (0)