diff options
author | Martin Odersky <odersky@gmail.com> | 2015-05-04 10:50:33 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-05-04 10:50:40 +0200 |
commit | 7bf29f00c85a0efe59bbca548767dcd21ec2b14e (patch) | |
tree | 030896b39c850fd8ef0f1b9d04386b4145875d04 /tests/pos/i503.scala | |
parent | 4808d1ddf94ddfcab5e6b5dd9a8d2a3b003b89e0 (diff) | |
download | dotty-7bf29f00c85a0efe59bbca548767dcd21ec2b14e.tar.gz dotty-7bf29f00c85a0efe59bbca548767dcd21ec2b14e.tar.bz2 dotty-7bf29f00c85a0efe59bbca548767dcd21ec2b14e.zip |
Treat references to modules and lazy vals as outer references
Previously, we considered only methods. #503 shows that this is wrong.
Diffstat (limited to 'tests/pos/i503.scala')
-rw-r--r-- | tests/pos/i503.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/i503.scala b/tests/pos/i503.scala new file mode 100644 index 000000000..93f275c4d --- /dev/null +++ b/tests/pos/i503.scala @@ -0,0 +1,9 @@ +class HelloWorld { + def main(args: Array[String]): Unit = { + object TypeBool; + + class Fct { + def g(x : Int) = TypeBool // breaks. + } + } +} |