summaryrefslogtreecommitdiff
path: root/test/pending/pos/virt.scala
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-04-14 15:22:54 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-04-14 15:22:54 +0000
commitb0a07f7860c34fbc2c23829ddacf5e68c45bf65a (patch)
tree23e109efdc796be211f1674317b7536a0af6fa4c /test/pending/pos/virt.scala
parentc0090ac04b035db94a4febd9bfbc7e9e28efa29a (diff)
downloadscala-b0a07f7860c34fbc2c23829ddacf5e68c45bf65a.tar.gz
scala-b0a07f7860c34fbc2c23829ddacf5e68c45bf65a.tar.bz2
scala-b0a07f7860c34fbc2c23829ddacf5e68c45bf65a.zip
Simple pending test for virtual classes.
Diffstat (limited to 'test/pending/pos/virt.scala')
-rw-r--r--test/pending/pos/virt.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pending/pos/virt.scala b/test/pending/pos/virt.scala
new file mode 100644
index 0000000000..6fe21246b0
--- /dev/null
+++ b/test/pending/pos/virt.scala
@@ -0,0 +1,9 @@
+object Virt extends Application {
+ class Foo {
+ trait Inner <: { val x : Int = 3 }
+ }
+
+ class Bar extends Foo {
+ trait Inner <: { val y : Int = x }
+ }
+}