aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i880.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/i880.scala')
-rw-r--r--tests/pos/i880.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/pos/i880.scala b/tests/pos/i880.scala
new file mode 100644
index 000000000..0f2b642ef
--- /dev/null
+++ b/tests/pos/i880.scala
@@ -0,0 +1,17 @@
+object Test {
+ def test = {
+ val myName: String = ""
+ new AnyRef {
+ new Exception {
+ def name = myName
+ }
+ }
+ new AnyRef {
+ new Exception {
+ new AnyRef {
+ def name = myName
+ }
+ }
+ }
+ }
+}