Skip to content

Commit 4b7838d

Browse files
committed
Expand macros in Inlining phase
1 parent 1bd0107 commit 4b7838d

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
@@ -141,7 +141,7 @@ package object compiletime {
141141
* @tparam T the tuple containing the types of the values to be summoned
142142
* @return the given values typed as elements of the tuple
143143
*/
144-
inline def summonAll[T <: Tuple]: Widen[T] =
144+
transparent inline def summonAll[T <: Tuple]: Tuple.Widen[T] =
145145
val res =
146146
inline erasedValue[T] match
147147
case _: EmptyTuple => EmptyTuple

0 commit comments

Comments
 (0)