diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-08-12 11:44:37 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-08-12 11:44:37 +0200 |
commit | bc0fc0fb90c81038dba16415ee6e733e4e054a28 (patch) | |
tree | 861c0410d9d07fdf7dd8bc82977b1b6559beda97 /test/files/run | |
parent | 50167e3f1df664165a2ad485abace5dbce623996 (diff) | |
parent | eff9a584a68c65935c313a6f26d7d4f778a61703 (diff) | |
download | scala-bc0fc0fb90c81038dba16415ee6e733e4e054a28.tar.gz scala-bc0fc0fb90c81038dba16415ee6e733e4e054a28.tar.bz2 scala-bc0fc0fb90c81038dba16415ee6e733e4e054a28.zip |
Merge pull request #3889 from som-snytt/issue/6476-alt
SI-6476 Improve error on escapement
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t6631.scala | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/files/run/t6631.scala b/test/files/run/t6631.scala deleted file mode 100644 index e472b83d50..0000000000 --- a/test/files/run/t6631.scala +++ /dev/null @@ -1,18 +0,0 @@ -import reflect.ClassTag - -object Test extends App { - def intercept[T <: Throwable : ClassTag](act: => Any) = try { - act - } catch { - case x: Throwable => - val cls = implicitly[ClassTag[T]].runtimeClass - assert(cls.isInstance(x), (x.getClass, x, cls).toString) - } - assert(s"""\f\r\n\t""" == "\f\r\n\t") - - import StringContext.InvalidEscapeException - intercept[InvalidEscapeException](s"""\""") - intercept[InvalidEscapeException](s"""\x""") - intercept[InvalidEscapeException](s"\") - -} |