Skip to content

Commit 9b710ff

Browse files
committed
Add Playground to make debugging easier in Metals
1 parent 7b208e4 commit 9b710ff

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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()

tests/playground/example.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
object Test:
2+
val foo: Int = 2
3+
def bar(x: Int): Int = x + x
4+
bar(foo)

0 commit comments

Comments
 (0)