diff options
author | Martin Odersky <odersky@gmail.com> | 2015-04-25 13:41:22 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-04-25 13:41:44 +0200 |
commit | 8cec943e961c4d82c132855e56d1747cf968830b (patch) | |
tree | 93d23149c9c9ffaac331cee99535bdeb197c4c90 /tests/pos/sepComp | |
parent | 7ebc9e2f74e5452749a39f9423de0ba4bd91d7c2 (diff) | |
download | dotty-8cec943e961c4d82c132855e56d1747cf968830b.tar.gz dotty-8cec943e961c4d82c132855e56d1747cf968830b.tar.bz2 dotty-8cec943e961c4d82c132855e56d1747cf968830b.zip |
Allow separate compilation of Dotty using TASTY
Classfile parser now reads TASTY attributes or annotations and
unpickles them in order to allow for separate compilation.
Diffstat (limited to 'tests/pos/sepComp')
-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) + +} + + |