From d176f102bb6d0a6467e510583e61f363ff76d75e Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Mon, 11 Apr 2016 13:24:46 +0200 Subject: Move test run/origins.scala to pending It tests an internal debugging tool which does not appear to work as intented. If anyone can compile and run that test and get an output that looks like the check file, I'd be interested to know. Origins does not seem to support the kind of stack traces that scalac currently emits. --- test/pending/run/origins.scala | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/pending/run/origins.scala (limited to 'test/pending/run/origins.scala') diff --git a/test/pending/run/origins.scala b/test/pending/run/origins.scala new file mode 100644 index 0000000000..6529351d3c --- /dev/null +++ b/test/pending/run/origins.scala @@ -0,0 +1,21 @@ +import scala.reflect.internal.util.Origins + +package goxbox { + object Socks { + val origins = Origins("boop") + + def boop(x: Int): Int = origins { 5 } + } +} + +object Test { + import goxbox.Socks.boop + + def f1() = 1 to 5 map boop + def f2() = 1 to 10 map boop + def f3() = 1 to 50 map boop + + def main(args: Array[String]): Unit = { + f1() ; f2() ; f3() + } +} -- cgit v1.2.3