aboutsummaryrefslogtreecommitdiff
path: root/tests/run/interpolationArgs.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/interpolationArgs.scala')
-rw-r--r--tests/run/interpolationArgs.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run/interpolationArgs.scala b/tests/run/interpolationArgs.scala
new file mode 100644
index 000000000..f4e41557a
--- /dev/null
+++ b/tests/run/interpolationArgs.scala
@@ -0,0 +1,5 @@
+object Test extends dotty.runtime.LegacyApp {
+ try { scala.StringContext("p1", "p2", "p3").s("e1") } catch { case ex: Throwable => println(ex) }
+ try { scala.StringContext("p1").s("e1") } catch { case ex: Throwable => println(ex) }
+}
+