aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2015-04-28 11:34:59 +0200
committerDmitry Petrashko <dark@d-d.me>2015-04-28 11:34:59 +0200
commit6d1138e2ce2d212c051faa20e1f4bf419ede3fdf (patch)
treebe382673680e862af282a56ce2aa6e0cb1b21903 /tests/pos
parentd55b7190fbba2794a020347241e838eeeca978da (diff)
parent3639cf84389860be14f428d33a80eee9aeea6efc (diff)
downloaddotty-6d1138e2ce2d212c051faa20e1f4bf419ede3fdf.tar.gz
dotty-6d1138e2ce2d212c051faa20e1f4bf419ede3fdf.tar.bz2
dotty-6d1138e2ce2d212c051faa20e1f4bf419ede3fdf.zip
Merge pull request #498 from dotty-staging/save-tasty
Save TASTY in attribute of classfiles.
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/sepComp/A_1.scala13
-rw-r--r--tests/pos/sepComp/B_2.scala13
2 files changed, 26 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)
+
+}
diff --git a/tests/pos/sepComp/B_2.scala b/tests/pos/sepComp/B_2.scala
new file mode 100644
index 000000000..3a503b352
--- /dev/null
+++ b/tests/pos/sepComp/B_2.scala
@@ -0,0 +1,13 @@
+package sepComp
+
+class B extends A(22) {
+
+ val y: Int = this.x
+
+ val a = A(33)
+
+ println(a.x)
+
+}
+
+