Skip to content

Commit 0a369f4

Browse files
committed
add regression tests
1 parent 86bd57d commit 0a369f4

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class CompilationTests extends ParallelTesting {
4949
compileFilesInDir("tests/new", defaultOptions),
5050
compileFilesInDir("tests/pos-scala2", scala2CompatMode),
5151
compileFilesInDir("tests/pos-custom-args/erased", defaultOptions.and("-Yerased-terms")),
52+
compileFilesInDir("tests/pos-custom-args/semanticdb", defaultOptions.and("-Ysemanticdb")),
5253
compileFilesInDir("tests/pos", defaultOptions),
5354
compileFilesInDir("tests/pos-deep-subtype", allowDeepSubtypes),
5455
compileFile(
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object Macro {
2+
class StringContextOps(sc: => StringContext)
3+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import quoted._
2+
3+
object CodeImpl {
4+
def codeExpr(using qctx: QuoteContext): Expr[String] = '{""}
5+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import quoted._
2+
3+
object TestImpl {
4+
transparent inline def fun (inline arg: String): String =
5+
/*
6+
Pad out the file
7+
Lorem ipsum dolor sit amet consectetur adipiscing elit tincidunt id augue, facilisi dignissim nibh litora lectus quam senectus fringilla molestie sollicitudin, nunc ullamcorper auctor turpis integer netus fermentum mattis magna. Nullam potenti diam tellus bibendum odio tristique felis, pharetra posuere at imperdiet suspendisse aenean, eu lobortis sapien eleifend aptent sociosqu.
8+
*/
9+
${ CodeImpl.codeExpr }
10+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
object Test {
2+
3+
def test = TestImpl.fun("")
4+
5+
}

0 commit comments

Comments
 (0)