Skip to content

Commit acdf2e8

Browse files
committed
Add test cases
1 parent 47884f3 commit acdf2e8

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

tests/pickling/i3149.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
sealed class Foo
2+
3+
class Test {
4+
def f = {
5+
class Bar extends Foo
6+
}
7+
}

tests/pos/i3149.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
sealed class Foo
2+
3+
class Test {
4+
def f = {
5+
class Bar extends Foo
6+
}
7+
class C {
8+
class Bar extends Foo
9+
}
10+
object O {
11+
class Bar extends Foo
12+
}
13+
}
14+

tests/pos/i3149a.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
sealed class Foo
2+
3+
object Foo {
4+
def f = {
5+
class Bar extends Foo
6+
}
7+
class C {
8+
class Bar extends Foo
9+
}
10+
object O {
11+
class Bar extends Foo
12+
}
13+
}
14+

0 commit comments

Comments
 (0)