summaryrefslogtreecommitdiff
path: root/test/files/run/t8608-no-format.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t8608-no-format.scala')
-rw-r--r--test/files/run/t8608-no-format.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t8608-no-format.scala b/test/files/run/t8608-no-format.scala
new file mode 100644
index 0000000000..71c369a7ea
--- /dev/null
+++ b/test/files/run/t8608-no-format.scala
@@ -0,0 +1,15 @@
+
+import scala.tools.partest.JavapTest
+
+object Test extends JavapTest {
+ def code = """
+ |f"hello, world"
+ |:javap -prv -
+ """.stripMargin
+
+ // no format
+ override def yah(res: Seq[String]) = {
+ // note: avoid the word "information"
+ res forall (!_.contains("StringOps.format"))
+ }
+}