summaryrefslogtreecommitdiff
path: root/test/files/run/elidable.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-03-23 16:52:51 +0000
committerPaul Phillips <paulp@improving.org>2010-03-23 16:52:51 +0000
commit26a2abff274fb7facfadcf5e9b66d805a1b670b1 (patch)
tree14a800206ce137e9e1e7fd3e6fbf4aeb8703d307 /test/files/run/elidable.scala
parent011377a2c73aee41673544479ee5db85fe143917 (diff)
downloadscala-26a2abff274fb7facfadcf5e9b66d805a1b670b1.tar.gz
scala-26a2abff274fb7facfadcf5e9b66d805a1b670b1.tar.bz2
scala-26a2abff274fb7facfadcf5e9b66d805a1b670b1.zip
Although it was working fine, a test case for @...
Although it was working fine, a test case for @elidable to make sure that state of affairs continues. No review.
Diffstat (limited to 'test/files/run/elidable.scala')
-rw-r--r--test/files/run/elidable.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/elidable.scala b/test/files/run/elidable.scala
new file mode 100644
index 0000000000..e0ac2ed0db
--- /dev/null
+++ b/test/files/run/elidable.scala
@@ -0,0 +1,14 @@
+import annotation._
+import elidable._
+
+object Test {
+ @elidable(FINEST) def f1() = assert(false, "Should have been elided.")
+ @elidable(INFO) def f2() = assert(false, "Should have been elided.")
+ @elidable(SEVERE) def f3() = println("Good for me, I was not elided.")
+
+ def main(args: Array[String]): Unit = {
+ f1()
+ f2()
+ f3()
+ }
+}