File tree Expand file tree Collapse file tree 6 files changed +13
-12
lines changed Expand file tree Collapse file tree 6 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ A [Giter8][g8] template for a minimal [Dotty] staging project.
6
6
7
7
Template usage
8
8
--------------
9
- Using ` sbt ` version ` 1.1.4 + ` , do:
9
+ Using ` sbt ` version ` 1.1.5 + ` , do:
10
10
```
11
11
sbt new lampepfl/dotty-quoted.g8
12
12
```
Original file line number Diff line number Diff line change 1
- val dottyVersion = " 0.9 .0-RC1"
1
+ val dottyVersion = " 0.10 .0-RC1"
2
2
3
3
lazy val root = project
4
4
.in(file(" ." ))
@@ -9,8 +9,8 @@ lazy val root = project
9
9
scalaVersion := dottyVersion,
10
10
11
11
libraryDependencies ++= Seq (
12
- " ch.epfl.lamp" % " dotty_0.9 " % dottyVersion,
13
- " ch.epfl.lamp" % " dotty_0.9 " % dottyVersion % " test->runtime" ,
12
+ " ch.epfl.lamp" % " dotty_0.10 " % dottyVersion,
13
+ " ch.epfl.lamp" % " dotty_0.10 " % dottyVersion % " test->runtime" ,
14
14
" com.novocode" % " junit-interface" % " 0.11" % " test"
15
15
)
16
16
)
Original file line number Diff line number Diff line change 1
- sbt.version =1.1.4
1
+ sbt.version =1.2.3
Original file line number Diff line number Diff line change 1
- addSbtPlugin(" ch.epfl.lamp" % " sbt-dotty" % " 0.2.2 " )
1
+ addSbtPlugin(" ch.epfl.lamp" % " sbt-dotty" % " 0.2.4 " )
Original file line number Diff line number Diff line change 1
1
2
- // Needed to run or show quotes
3
- import dotty .tools .dotc .quoted .Toolbox ._
4
-
5
2
// Import Expr and some extension methods
6
3
import scala .quoted ._
7
4
8
5
object Main {
9
6
7
+ // Needed to run or show quotes
8
+ implicit val toolbox : scala.quoted.Toolbox = scala.quoted.Toolbox .make
9
+
10
10
def main (args : Array [String ]): Unit = {
11
11
val square = stagedPower(2 )
12
12
println(" 3^2 = " + square(3 ))
Original file line number Diff line number Diff line change 1
1
2
- // Needed to run or show quotes
3
- import dotty .tools .dotc .quoted .Toolbox ._
4
-
5
2
import org .junit .Test
6
3
import org .junit .Assert ._
7
4
8
5
class Test1 {
6
+
7
+ // Needed to run or show quotes
8
+ implicit val toolbox : scala.quoted.Toolbox = scala.quoted.Toolbox .make
9
+
9
10
@ Test def t1 (): Unit = {
10
11
val code = '(println("foo"))
11
12
assertEquals(" scala.Predef.println(\" foo\" )" , code.show)
You can’t perform that action at this time.
0 commit comments