aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/sepComp/A_1.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-04-25 13:41:22 +0200
committerMartin Odersky <odersky@gmail.com>2015-04-25 13:41:44 +0200
commit8cec943e961c4d82c132855e56d1747cf968830b (patch)
tree93d23149c9c9ffaac331cee99535bdeb197c4c90 /tests/pos/sepComp/A_1.scala
parent7ebc9e2f74e5452749a39f9423de0ba4bd91d7c2 (diff)
downloaddotty-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/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)
+
+}