summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-04-13 13:07:54 +0000
committerpaltherr <paltherr@epfl.ch>2004-04-13 13:07:54 +0000
commit8bc6f7c18758ed50b21464885ec8bd67d3fe2cc4 (patch)
tree87c5728ee978df6a62172dc6d0ae1cc7c3026461
parentacbb83de851c09cf26ef3af69d67a5b371a82181 (diff)
downloadscala-8bc6f7c18758ed50b21464885ec8bd67d3fe2cc4.tar.gz
scala-8bc6f7c18758ed50b21464885ec8bd67d3fe2cc4.tar.bz2
scala-8bc6f7c18758ed50b21464885ec8bd67d3fe2cc4.zip
- Added pos/bug318.scala
-rw-r--r--config/list/test-pos.lst1
-rw-r--r--test/files/pos/bug318.scala11
2 files changed, 12 insertions, 0 deletions
diff --git a/config/list/test-pos.lst b/config/list/test-pos.lst
index 60a470f484..7577addfb3 100644
--- a/config/list/test-pos.lst
+++ b/config/list/test-pos.lst
@@ -28,6 +28,7 @@ pos/bug267.scala
pos/bug29.scala
pos/bug30.scala
pos/bug31.scala
+pos/bug318.scala
pos/bug36.scala
pos/bug39.scala
pos/bug49.scala
diff --git a/test/files/pos/bug318.scala b/test/files/pos/bug318.scala
new file mode 100644
index 0000000000..1b9fa4a4b3
--- /dev/null
+++ b/test/files/pos/bug318.scala
@@ -0,0 +1,11 @@
+// $Id$
+
+object Test {
+ def fun: Int = {
+ object o {
+ def a: Int = 1;
+ class C { def b: Int = a; }
+ }
+ 0
+ }
+}