summaryrefslogtreecommitdiff
path: root/test/files/run/t8445.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t8445.scala')
-rw-r--r--test/files/run/t8445.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t8445.scala b/test/files/run/t8445.scala
new file mode 100644
index 0000000000..ed196b62a2
--- /dev/null
+++ b/test/files/run/t8445.scala
@@ -0,0 +1,11 @@
+object X {
+ class Y
+ def y = new Y {
+ class Z
+ def z = classOf[Z]
+ }
+}
+
+object Test extends App {
+ assert(X.y.z.getEnclosingClass.getName == "X$$anon$1")
+}