Skip to content

Commit 5490f95

Browse files
committed
Fix documentation generation
Update reference compiler and use single version of `scala.internal.quoted.CompileTime`. The issue was that `genDocs` used both the bootstrapped and non-bootstrapped version which conflicted.
1 parent 811dc19 commit 5490f95

File tree

4 files changed

+3
-49
lines changed

4 files changed

+3
-49
lines changed

library/src-non-bootstrapped/scala/internal/quoted/CompileTime.scala

Lines changed: 0 additions & 48 deletions
This file was deleted.

library/src/scala/quoted/util/Var.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ object Var {
1717
/** Create a variable initialized with `init` and used in `body`.
1818
* `body` receives a `Var[T]` argument which exposes `get` and `update`.
1919
*
20+
* ```
2021
* Var('{7}) {
2122
* x => '{
2223
* while(0 < ${x.get})
@@ -33,6 +34,7 @@ object Var {
3334
* x = x - 1
3435
* x
3536
* }
37+
* ```
3638
*/
3739
def apply[T: Type, U: Type](init: Expr[T])(body: Var[T] => Expr[U])(using qctx: QuoteContext): Expr[U] = '{
3840
var x = $init

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ object MyScalaJSPlugin extends AutoPlugin {
6262
}
6363

6464
object Build {
65-
val referenceVersion = "0.22.0-RC1"
65+
val referenceVersion = "0.23.0-bin-20200222-811dc19-NIGHTLY"
6666

6767
val baseVersion = "0.23.0"
6868
val baseSbtDottyVersion = "0.4.0"

0 commit comments

Comments
 (0)