File tree 2 files changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/printing
library/src/scala/runtime/stdLibPatches
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
219
219
toTextGlobal(tp.resultType)
220
220
}
221
221
case AnnotatedType (tpe, annot) =>
222
- toTextLocal(tpe) ~ " " ~ toText(annot)
222
+ if annot.symbol == defn.InlineParamAnnot then toText(tpe)
223
+ else toTextLocal(tpe) ~ " " ~ toText(annot)
223
224
case tp : TypeVar =>
224
225
if (tp.isInstantiated)
225
226
toTextLocal(tp.instanceOpt) ~ (Str (" ^" ) provided printDebug)
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object Predef:
31
31
* @tparam T the type of the value to be summoned
32
32
* @return the given value typed: the provided type parameter
33
33
*/
34
- inline def summon [T ](using x : T ): x.type = x
34
+ transparent inline def summon [T ](using inline x : T ): x.type = x
35
35
36
36
// Extension methods for working with explicit nulls
37
37
You can’t perform that action at this time.
0 commit comments