Skip to content

Commit 731f4c8

Browse files
oderskymichelou
authored andcommitted
Test with Scala 2.13 compiler
1 parent 4d7c533 commit 731f4c8

File tree

7 files changed

+21
-3
lines changed

7 files changed

+21
-3
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import i12109.*
2+
3+
def test = JsonReaderDefaultValue
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
val scala3Version = sys.props("plugin.scalaVersion")
2+
val scala2Version = "2.13.5"
3+
4+
lazy val lib = project.in(file("lib"))
5+
.settings(
6+
scalaVersion := scala2Version
7+
)
8+
9+
lazy val app = project.in(file("app"))
10+
.dependsOn(lib)
11+
.settings(
12+
scalaVersion := scala3Version
13+
)

tests/pos/i12109/JsonReaderDefaultValue.scala renamed to sbt-dotty/sbt-test/scala2-compat/i12109/lib/Lib.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package i12109
2+
13
object JsonReaderDefaultValue extends LowPriorityDefaultValue {
24
class ReaderDefaultValue extends scala.annotation.StaticAnnotation
35
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=1.3.12
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % sys.props("plugin.version"))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
> app/compile

tests/pos/i12109/Test.scala

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

0 commit comments

Comments
 (0)