diff options
author | Dmitry Petrashko <dark@d-d.me> | 2015-04-28 11:34:59 +0200 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2015-04-28 11:34:59 +0200 |
commit | 6d1138e2ce2d212c051faa20e1f4bf419ede3fdf (patch) | |
tree | be382673680e862af282a56ce2aa6e0cb1b21903 /tests/pos | |
parent | d55b7190fbba2794a020347241e838eeeca978da (diff) | |
parent | 3639cf84389860be14f428d33a80eee9aeea6efc (diff) | |
download | dotty-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.scala | 13 | ||||
-rw-r--r-- | tests/pos/sepComp/B_2.scala | 13 |
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) + +} + + |