Skip to content

Commit 5d2cbe6

Browse files
authored
Merge pull request #2 from lampepfl/nicolasstucki-patch-1
Upgrade to 0.10-RC1
2 parents 4c574a6 + a580395 commit 5d2cbe6

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A [Giter8][g8] template for a minimal [Dotty] staging project.
66

77
Template usage
88
--------------
9-
Using `sbt` version `1.1.4+`, do:
9+
Using `sbt` version `1.1.5+`, do:
1010
```
1111
sbt new lampepfl/dotty-quoted.g8
1212
```

src/main/g8/build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
val dottyVersion = "0.9.0-RC1"
1+
val dottyVersion = "0.10.0-RC1"
22

33
lazy val root = project
44
.in(file("."))
@@ -9,8 +9,8 @@ lazy val root = project
99
scalaVersion := dottyVersion,
1010

1111
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",
1414
"com.novocode" % "junit-interface" % "0.11" % "test"
1515
)
1616
)

src/main/g8/project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.1.4
1+
sbt.version=1.2.3

src/main/g8/project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.2.2")
1+
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.2.4")

src/main/g8/src/main/scala/Main.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

2-
// Needed to run or show quotes
3-
import dotty.tools.dotc.quoted.Toolbox._
4-
52
// Import Expr and some extension methods
63
import scala.quoted._
74

85
object Main {
96

7+
// Needed to run or show quotes
8+
implicit val toolbox: scala.quoted.Toolbox = scala.quoted.Toolbox.make
9+
1010
def main(args: Array[String]): Unit = {
1111
val square = stagedPower(2)
1212
println("3^2 = " + square(3))

src/main/g8/src/test/scala/Test1.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11

2-
// Needed to run or show quotes
3-
import dotty.tools.dotc.quoted.Toolbox._
4-
52
import org.junit.Test
63
import org.junit.Assert._
74

85
class Test1 {
6+
7+
// Needed to run or show quotes
8+
implicit val toolbox: scala.quoted.Toolbox = scala.quoted.Toolbox.make
9+
910
@Test def t1(): Unit = {
1011
val code = '(println("foo"))
1112
assertEquals("scala.Predef.println(\"foo\")", code.show)

0 commit comments

Comments
 (0)