summaryrefslogtreecommitdiff
path: root/test/files/run/reflection-allmirrors-tostring.check
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-07-31 10:50:54 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-08-02 15:50:09 +0200
commitb578059b43a4caaadee2cb20f74cd9a7c876c8ef (patch)
treee412b8c89cabf318a0f0c99cc26d0f1486e5e532 /test/files/run/reflection-allmirrors-tostring.check
parent013acf6eb0117ca12ab2a0d0e8560df40a7392a3 (diff)
downloadscala-b578059b43a4caaadee2cb20f74cd9a7c876c8ef.tar.gz
scala-b578059b43a4caaadee2cb20f74cd9a7c876c8ef.tar.bz2
scala-b578059b43a4caaadee2cb20f74cd9a7c876c8ef.zip
SI-5888 Mirrors now have sane toStrings
Adds informative toString for InstanceMirror, FieldMirror, MethodMirror (for methods and constructors), ClassMirror and ModuleMirror. Universe mirrors (e.g. JavaMirrors or compiler mirrors) already have good toString methods that show their affiliation and/or classpaths.
Diffstat (limited to 'test/files/run/reflection-allmirrors-tostring.check')
-rw-r--r--test/files/run/reflection-allmirrors-tostring.check14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/reflection-allmirrors-tostring.check b/test/files/run/reflection-allmirrors-tostring.check
new file mode 100644
index 0000000000..b5fe6c33bb
--- /dev/null
+++ b/test/files/run/reflection-allmirrors-tostring.check
@@ -0,0 +1,14 @@
+class mirror for C (bound to null)
+module mirror for M (bound to null)
+instance mirror for an instance of C
+field mirror for C.f1 (bound to an instance of C)
+field mirror for C.f2 (bound to an instance of C)
+method mirror for C.m1: Int (bound to an instance of C)
+method mirror for C.m2(): Int (bound to an instance of C)
+method mirror for C.m3[T >: String <: Int]: T (bound to an instance of C)
+method mirror for C.m4[A, B <: A[Int]](x: A[B])(implicit y: Int): Nothing (bound to an instance of C)
+method mirror for C.m5(x: => Int, y: Int*): String (bound to an instance of C)
+class mirror for C.C (bound to an instance of C)
+module mirror for C.M (bound to an instance of C)
+constructor mirror for C.<init>(): C (bound to null)
+constructor mirror for C.C.<init>(): C.this.C (bound to an instance of C)