summaryrefslogtreecommitdiff
path: root/test/files/run/t5856.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t5856.scala')
-rw-r--r--test/files/run/t5856.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t5856.scala b/test/files/run/t5856.scala
new file mode 100644
index 0000000000..d1e9bd6e58
--- /dev/null
+++ b/test/files/run/t5856.scala
@@ -0,0 +1,10 @@
+object Test extends App {
+ override def toString = "Test"
+
+ assert(s"$this" == "Test")
+ assert(s"$this$this" == "TestTest")
+ assert(s"$this$$" == "Test$")
+ assert(s"$this.##" == "Test.##")
+ assert(s"$this.toString" == "Test.toString")
+ assert(s"$this=THIS" == "Test=THIS")
+} \ No newline at end of file