summaryrefslogtreecommitdiff
path: root/test/files/run/showdecl.check
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-01-28 12:23:47 +0300
committerEugene Burmako <xeno.by@gmail.com>2014-02-14 14:16:42 +0100
commit202eb73b6cd6ebb3e20ff9f0a198c4ea83319851 (patch)
tree1fb59abe86590e8c03baff04099f2eda5bc788ac /test/files/run/showdecl.check
parentada0252d4494611904c15cc5da72654c1a180a8f (diff)
downloadscala-202eb73b6cd6ebb3e20ff9f0a198c4ea83319851.tar.gz
scala-202eb73b6cd6ebb3e20ff9f0a198c4ea83319851.tar.bz2
scala-202eb73b6cd6ebb3e20ff9f0a198c4ea83319851.zip
adds showDeclaration(sym: Symbol): String
As per Paul’s request, this commit exposes Symbol.defString, although in a different way to ensure consistency with our other prettyprinting facilities provided in the reflection API.
Diffstat (limited to 'test/files/run/showdecl.check')
-rw-r--r--test/files/run/showdecl.check34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/files/run/showdecl.check b/test/files/run/showdecl.check
new file mode 100644
index 0000000000..b8d7f94c57
--- /dev/null
+++ b/test/files/run/showdecl.check
@@ -0,0 +1,34 @@
+compile-time
+uninitialized D: class D extends
+initialized D: class D extends C
+uninitialized x: val x: <?>
+initialized x: val x: Int
+uninitialized y: lazy val y: <?>
+initialized y: lazy val y: Int
+uninitialized z: def z: <?>
+initialized z: def z: Int
+uninitialized t: def t: <?>
+initialized t: def t[T <: Int](x: D)(y: x.W): Int
+uninitialized W: type W = String
+initialized W: type W = String
+uninitialized C: class C extends
+initialized C: class C extends D
+uninitialized O: object O
+initialized O: object O
+runtime
+autoinitialized D: class D extends C
+autoinitialized D: class D extends C
+autoinitialized x: val x: Int
+autoinitialized x: val x: Int
+autoinitialized y: lazy val y: Int
+autoinitialized y: lazy val y: Int
+autoinitialized z: def z: Int
+autoinitialized z: def z: Int
+autoinitialized t: def t[T <: Int](x: D)(y: x.W): Int
+autoinitialized t: def t[T <: Int](x: D)(y: x.W): Int
+autoinitialized W: type W = String
+autoinitialized W: type W = String
+autoinitialized C: class C extends D
+autoinitialized C: class C extends D
+autoinitialized O: object O
+autoinitialized O: object O