summaryrefslogtreecommitdiff
path: root/test/files/run/t3895.scala
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2010-10-20 13:26:11 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2010-10-20 13:26:11 +0000
commit2014160121a62681bdc0e873a3f7e9b5e3bbae16 (patch)
tree5da2d4ad44f798bbf210f583139b302390ff8c8e /test/files/run/t3895.scala
parentadd9be644fd7b2864e4dcdd792980622622c934a (diff)
downloadscala-2014160121a62681bdc0e873a3f7e9b5e3bbae16.tar.gz
scala-2014160121a62681bdc0e873a3f7e9b5e3bbae16.tar.bz2
scala-2014160121a62681bdc0e873a3f7e9b5e3bbae16.zip
Closes #3059, #3895 (the only difference betwee...
Closes #3059, #3895 (the only difference between this and r23232 is the forced info transformation that ensures that nested objects are viewed as lazy vals). sbt integration requires new starr for this commit to work.
Diffstat (limited to 'test/files/run/t3895.scala')
-rw-r--r--test/files/run/t3895.scala30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/files/run/t3895.scala b/test/files/run/t3895.scala
new file mode 100644
index 0000000000..dfc4a34a32
--- /dev/null
+++ b/test/files/run/t3895.scala
@@ -0,0 +1,30 @@
+class C extends A{
+
+ val a = 10
+ //object bb
+ lazy val bb = 17
+ val b = 12
+}
+
+abstract class A{
+ val a: Int
+ val b: Int
+ val c: Int = 12
+}
+
+class B extends A{
+
+ val a = 10
+ //object bb
+ lazy val bb = 17
+ val b = 12
+}
+
+
+object Test {
+ def main(args: Array[String]) {
+ println(new B().bb)
+ println(new C().bb)
+ }
+}
+