Is it expected that summonInline
seems to return not as precise type as summon
?
#23134
Labels
summonInline
seems to return not as precise type as summon
?
#23134
Compiler versions
3.7.2-RC1-bin-20250510-f784625-NIGHTLY
3.7.0
3.6.4
Minimized code
Output
summon[A]
seems to return an implicit of precise typea.type
.But
summonInline[A]
seems to return justA
upon inlining, that's whyDeferred inline method foo in trait A cannot be invoked
.Is this expected behavior?
The output with
scalacOptions ++= Seq( "-Xprint-types", "-Vprint:typer")
:The output with
scalacOptions ++= Seq( "-Xprint-types", "-Vprint:inlining")
:Expectation
summonAAndFoo
should compile and return1
.Discovered in https://stackoverflow.com/questions/79614883/how-to-call-an-inline-method-from-within-a-scala-3-6-4-macro
The text was updated successfully, but these errors were encountered: