summaryrefslogtreecommitdiff
path: root/test/files/run/t6608.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t6608.scala')
-rw-r--r--test/files/run/t6608.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/t6608.scala b/test/files/run/t6608.scala
new file mode 100644
index 0000000000..2ba979649b
--- /dev/null
+++ b/test/files/run/t6608.scala
@@ -0,0 +1,16 @@
+import reflect.runtime.universe
+
+class C {
+ private val yyy: Any = 1
+ @inline def foo = yyy
+}
+
+object Test extends App {
+ import universe._
+ val access = typeOf[C].decls
+ .toList
+ .filter(_.name.toString.endsWith("yyy"))
+ .map(x => (x.name, x.isPrivate))
+ println(access.head)
+}
+