Skip to content

Commit b75714f

Browse files
committed
Update doc
1 parent aa8d7ea commit b75714f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler/src/dotty/tools/dotc/transform/ReifyQuotes.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,19 @@ import dotty.tools.dotc.core.quoted._
6666
* ```
6767
* to
6868
* ```
69-
* inline def foo[T1, ...](inline x1: X, ..., y1: Y, ..., inline f1: X => Y): Seq[Any] => Object = { (args: Seq[Any]) => {
69+
* inline def foo[T1, ...](inline x1: X, ..., y1: Y, ....): Seq[Any] => Object = { (args: Seq[Any]) => {
7070
* val T1$1 = args(0).asInstanceOf[Type[T1]]
7171
* ...
7272
* val x1$1 = args(0).asInstanceOf[X]
7373
* ...
7474
* val y1$1 = args(1).asInstanceOf[Expr[Y]]
7575
* ...
76-
* { ... x1$1 .... '{ ... T1$1.unary_~ ... x1$1.toExpr.unary_~ ... y1$1.unary_~ ... f1$1.unary_~ ... } ... }
76+
* { ... x1$1 .... '{ ... T1$1.unary_~ ... x1$1.toExpr.unary_~ ... y1$1.unary_~ ... } ... }
7777
* }
7878
* ```
7979
* Where `inline` parameters with type Boolean, Byte, Short, Int, Long, Float, Double, Char and String are
80-
* passed as their actual runtime value. See `isStage0Value`.
80+
* passed as their actual runtime value. See `isStage0Value`. Other `inline` arguments such as functions are handled
81+
* like `y1: Y`.
8182
*
8283
* Note: the parameters of `foo` are kept for simple overloading resolution but they are not used in the body of `foo`.
8384
*

0 commit comments

Comments
 (0)