diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-07-30 13:17:17 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-08-02 15:36:55 +0200 |
commit | a727c6fc198d33842ff85d8a16d48143a6757d51 (patch) | |
tree | 3b995ade8066488c3ac42d7b65e0bb02b976cabc /test/files/run/reflection-simple.scala | |
parent | 937da62be2834a646a31dbfb01527a82672f111e (diff) | |
download | scala-a727c6fc198d33842ff85d8a16d48143a6757d51.tar.gz scala-a727c6fc198d33842ff85d8a16d48143a6757d51.tar.bz2 scala-a727c6fc198d33842ff85d8a16d48143a6757d51.zip |
SI-5732 members and derivatives now return Scope
Firstly this unifies the reflection API - now both decls and members
return Scope (not Scope and List[Symbol] as it were before).
Secondly this fixes SI-5732 without having to sort the result of members.
Type.members now returns Scope, a distinguished type, which has the
`sorted` method, which does the required sorting if necessary.
Also removes nonPrivateMembers and nonPrivateDeclarations to keep the API
minimalistic (as can be seen from their implementation in internal.Types
they are just members and decls with bridges and private members removed).
Diffstat (limited to 'test/files/run/reflection-simple.scala')
-rw-r--r-- | test/files/run/reflection-simple.scala | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/files/run/reflection-simple.scala b/test/files/run/reflection-simple.scala deleted file mode 100644 index ec34b71cec..0000000000 --- a/test/files/run/reflection-simple.scala +++ /dev/null @@ -1,12 +0,0 @@ -// a.scala -// Wed May 2 01:01:22 PDT 2012 - -object Test { - def main(args: Array[String]) { - System.out.println("Running") - case class Foo(a: Int, b: Int, c: Int) - import scala.reflect.runtime.{currentMirror => cm} - val props = cm.classSymbol(classOf[Foo]).typeSignature.members.filter(_.isTerm).map(_.toString) - props.toList.sorted foreach System.out.println - } -} |