File tree 4 files changed +20
-3
lines changed
compiler/test/dotty/tools/dotc 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change
1
+ package dotty .tools .dotc
2
+
3
+ import dotty .tools .vulpix ._
4
+ import org .junit .Test
5
+ import org .junit .Ignore
6
+
7
+ @ Ignore class Playground :
8
+ import TestConfiguration ._
9
+ import CompilationTests ._
10
+
11
+ @ Test def example : Unit =
12
+ implicit val testGroup : TestGroup = TestGroup (" playground" )
13
+ compileFile(" tests/playground/example.scala" , defaultOptions).checkCompile()
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ class SettingsTests {
106
106
false
107
107
108
108
val default = Settings .defaultState
109
- assertThrows[IllegalArgumentException ](checkMessage(" found: not an option of type java.lang.String, required: Boolean" )) {
109
+ dotty.tools. assertThrows[IllegalArgumentException ](checkMessage(" found: not an option of type java.lang.String, required: Boolean" )) {
110
110
Settings .option.updateIn(default, " not an option" )
111
111
}
112
112
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ object Build {
251
251
// Prevent sbt from rewriting our dependencies
252
252
scalaModuleInfo ~= (_.map(_.withOverrideScalaVersion(false ))),
253
253
254
- libraryDependencies += " com.novocode " % " junit-interface" % " 0.11 " % Test ,
254
+ libraryDependencies += " com.github.sbt " % " junit-interface" % " 0.13.3 " % Test ,
255
255
256
256
// If someone puts a source file at the root (e.g., for manual testing),
257
257
// don't pick it up as part of any project.
@@ -1327,7 +1327,7 @@ object Build {
1327
1327
" org.jsoup" % " jsoup" % " 1.14.3" , // Needed to process .html files for static site
1328
1328
Dependencies .`jackson-dataformat-yaml`,
1329
1329
1330
- " com.novocode " % " junit-interface" % " 0.11 " % " test " ,
1330
+ " com.github.sbt " % " junit-interface" % " 0.13.3 " % Test ,
1331
1331
),
1332
1332
Compile / mainClass := Some (" dotty.tools.scaladoc.Main" ),
1333
1333
Compile / buildInfoKeys := Seq [BuildInfoKey ](version),
Original file line number Diff line number Diff line change
1
+ object Test :
2
+ val foo : Int = 2
3
+ def bar (x : Int ): Int = x + x
4
+ bar(foo)
You can’t perform that action at this time.
0 commit comments