summaryrefslogtreecommitdiff
path: root/test/files/run/t8610.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t8610.scala')
-rw-r--r--test/files/run/t8610.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/t8610.scala b/test/files/run/t8610.scala
new file mode 100644
index 0000000000..dd9e8e861e
--- /dev/null
+++ b/test/files/run/t8610.scala
@@ -0,0 +1,13 @@
+
+// flags don't warn on u
+case class X(name: String) {
+ def x = "Hi, $name" // missing interp
+ def f(p: (Int, Int)): Int = p._1 * p._2
+ def g = f(3, 4) // adapted
+ def u: Unit = () // unitarian universalist
+}
+
+object Test extends App {
+ // poignant demonstration
+ Console println X("Bob").x
+}