summaryrefslogtreecommitdiff
path: root/test/files/run/global-showdef.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/global-showdef.scala')
-rw-r--r--test/files/run/global-showdef.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/run/global-showdef.scala b/test/files/run/global-showdef.scala
index 2a00ee51bd..0dbaba979d 100644
--- a/test/files/run/global-showdef.scala
+++ b/test/files/run/global-showdef.scala
@@ -40,8 +40,8 @@ object Bippy {
new Global(settings)
}
-
- def slurp(body: => Unit): String = stringFromStream { stream =>
+
+ def slurp(body: => Unit): String = stringFromStream { stream =>
Console.withOut(stream) {
Console.withErr(stream) {
body
@@ -58,11 +58,11 @@ object Bippy {
}
def showClass(name: String) = lines("-Yshow:typer", "-Xshow-class", name)
def showObject(name: String) = lines("-Yshow:typer", "-Xshow-object", name)
-
+
def show(xs: List[String]) = {
xs filter (x => (x contains "def showdefTestMember") || (x startsWith "<<-- ")) foreach println
}
-
+
def main(args: Array[String]) {
show(List("Bippy", "Bippy#BippyType", "Bippy.BippyType", "Bippy#Boppity", "Bippy#Boppity#Boo") flatMap showClass)
show(List("Bippy", "Bippy#Boppity#Boo") flatMap showObject)