Skip to content

Commit 6b484e9

Browse files
committed
Fix #3323: Add regression test
1 parent aa6459e commit 6b484e9

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ class CompilationTests extends ParallelTesting {
5555
compileFile("../tests/pos-scala2/rewrites.scala", scala2Mode.and("-rewrite")).copyToTarget() +
5656
compileFile("../tests/pos-special/utf8encoded.scala", explicitUTF8) +
5757
compileFile("../tests/pos-special/utf16encoded.scala", explicitUTF16) +
58+
compileFile("../tests/pos-special/i3323.scala", defaultOptions.and("-Xfatal-warnings")) +
59+
compileFile("../tests/pos-special/i3323b.scala", defaultOptions.and("-Xfatal-warnings")) +
5860
compileFile("../tests/pos-special/i3589-b.scala", defaultOptions.and("-Xfatal-warnings")) +
5961
compileList(
6062
"compileMixed",

tests/pos-special/i3323.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Foo {
2+
def foo[A](lss: List[List[A]]): Unit = {
3+
lss match {
4+
case xss: List[List[A]] =>
5+
}
6+
}
7+
}

tests/pos-special/i3323b.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Foo {
2+
def foo(lss: List[Int]): Unit = {
3+
lss match {
4+
case xss: List[Int] =>
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)