aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/caseClassInMethod.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/caseClassInMethod.scala')
-rw-r--r--tests/untried/pos/caseClassInMethod.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/untried/pos/caseClassInMethod.scala b/tests/untried/pos/caseClassInMethod.scala
new file mode 100644
index 000000000..958e5dd47
--- /dev/null
+++ b/tests/untried/pos/caseClassInMethod.scala
@@ -0,0 +1,5 @@
+object t {
+ def f = { object C; case class C(); 1 }
+ // pending: def g = { case class D(x: Int); object D; 2 }
+ def h = { case class E(y: Int = 10); 3 }
+}