summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2012-11-02 18:01:14 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2012-11-02 18:01:14 -0700
commit424072aeaa391de40531f33694985072cbb70152 (patch)
treeeea8a41a840d7971bc963b30464eb2e0bcae96bf /test
parentf8ed076e251ff8b6e2b1d27f8c8a0dde2117308d (diff)
parenta525d371e10b2bb9b6a2228f67603aa318f97716 (diff)
downloadscala-424072aeaa391de40531f33694985072cbb70152.tar.gz
scala-424072aeaa391de40531f33694985072cbb70152.tar.bz2
scala-424072aeaa391de40531f33694985072cbb70152.zip
Merge pull request #1561 from gkossakowski/ticket/6562
SI-6562 Fix crash with class nested in @inline method
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/t6562.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/pos/t6562.scala b/test/files/pos/t6562.scala
new file mode 100644
index 0000000000..eec7aa5199
--- /dev/null
+++ b/test/files/pos/t6562.scala
@@ -0,0 +1,14 @@
+class Test {
+
+ @inline
+ def foo {
+ def it = new {}
+ (_: Any) => it
+ }
+
+ @inline
+ private def bar {
+ def it = new {}
+ (_: Any) => it
+ }
+}