aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t5082.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t5082.scala')
-rw-r--r--tests/untried/pos/t5082.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/untried/pos/t5082.scala b/tests/untried/pos/t5082.scala
new file mode 100644
index 000000000..63eeda38b
--- /dev/null
+++ b/tests/untried/pos/t5082.scala
@@ -0,0 +1,14 @@
+trait Something[T]
+object Test { class A }
+case class Test() extends Something[Test.A]
+
+object User {
+ val Test() = Test()
+}
+
+object Wrap {
+ trait Something[T]
+ object Test { class A }
+ case class Test(a: Int, b: Int)(c: String) extends Something[Test.A]
+ val Test(x, y) = Test(1, 2)(""); (x + y).toString
+}