summaryrefslogtreecommitdiff
path: root/test/files/run/reflection-sanitychecks.check
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-08-06 17:55:12 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-08-06 23:09:32 +0200
commit3cbe07f3e3ddb7201d1d174399d14d4a69df52fd (patch)
treef85e48e71ee73c51ec61138a6095e0f8c4c78254 /test/files/run/reflection-sanitychecks.check
parent3c4f4865f6420f98a7ed502257bc65387951e26c (diff)
downloadscala-3cbe07f3e3ddb7201d1d174399d14d4a69df52fd.tar.gz
scala-3cbe07f3e3ddb7201d1d174399d14d4a69df52fd.tar.bz2
scala-3cbe07f3e3ddb7201d1d174399d14d4a69df52fd.zip
sanity check for reflectConstructor
In 911bbc4 I've completely overlooked the fact that reflectConstructor exists and that is also needs sanity checks. Now reflectConstructor checks that the incoming symbol is actually a ctor, and that it is actually a ctor of the class reflected by the current mirror.
Diffstat (limited to 'test/files/run/reflection-sanitychecks.check')
-rw-r--r--test/files/run/reflection-sanitychecks.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/run/reflection-sanitychecks.check b/test/files/run/reflection-sanitychecks.check
index d977e0ed66..4881285bc0 100644
--- a/test/files/run/reflection-sanitychecks.check
+++ b/test/files/run/reflection-sanitychecks.check
@@ -1,8 +1,12 @@
field: 1
method: 2
+constructor #1: scala.ScalaReflectionException: expected a constructor of class C, you provided method bar
+constructor #2: an instance of class C
class: CC
object: java.lang.Error: inner and nested modules are not supported yet
field: scala.ScalaReflectionException: expected a member of class C, you provided value D.foo
method: scala.ScalaReflectionException: expected a member of class C, you provided method D.bar
+constructor #1: scala.ScalaReflectionException: expected a constructor of class C, you provided method bar
+constructor #2: scala.ScalaReflectionException: expected a constructor of class C, you provided constructor D
class: scala.ScalaReflectionException: expected a member of class C, you provided class D.C
object: scala.ScalaReflectionException: expected a member of class C, you provided object D.O