diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-09-28 10:24:48 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-09-28 10:24:48 +1000 |
commit | dc548947a32f7923fdb5ed4f0a9c8454773b1a05 (patch) | |
tree | de25d3140e0f33e84d66321221eecf5525a0d5d7 /test/files/neg/macro-invalidret | |
parent | f62c312a857e1a6cc6646ee60a0f86866e19c01b (diff) | |
download | scala-dc548947a32f7923fdb5ed4f0a9c8454773b1a05.tar.gz scala-dc548947a32f7923fdb5ed4f0a9c8454773b1a05.tar.bz2 scala-dc548947a32f7923fdb5ed4f0a9c8454773b1a05.zip |
Avoid test fragility to changes in Predef
The check file used to contain a stack trace entry from
Predef with a line number. I've made the macro fail
in a different manner that avoids this fragility.
Diffstat (limited to 'test/files/neg/macro-invalidret')
-rw-r--r-- | test/files/neg/macro-invalidret/Impls_1.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/neg/macro-invalidret/Impls_1.scala b/test/files/neg/macro-invalidret/Impls_1.scala index 434aeef10f..a52e8d8f39 100644 --- a/test/files/neg/macro-invalidret/Impls_1.scala +++ b/test/files/neg/macro-invalidret/Impls_1.scala @@ -4,7 +4,7 @@ import scala.reflect.runtime.{universe => ru} object Impls { def foo1(c: Context) = 2 def foo2(c: Context) = ru.Literal(ru.Constant(42)) - def foo3(c: Context) = ??? + def foo3(c: Context) = throw null def foo5(c: Context) = c.universe.Literal(c.universe.Constant(42)) def foo6(c: Context) = c.Expr[Int](c.universe.Literal(c.universe.Constant(42))) } |