aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/sepComp/A_1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/sepComp/A_1.scala')
-rw-r--r--tests/pos/sepComp/A_1.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pos/sepComp/A_1.scala b/tests/pos/sepComp/A_1.scala
new file mode 100644
index 000000000..03d574705
--- /dev/null
+++ b/tests/pos/sepComp/A_1.scala
@@ -0,0 +1,13 @@
+package sepComp
+
+class A(y: Int) {
+
+ val x: Int = y
+
+}
+
+object A {
+
+ def apply(x: Int) = new A(22)
+
+}