summaryrefslogtreecommitdiff
path: root/test/files/pos/t6921.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t6921.scala')
-rw-r--r--test/files/pos/t6921.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t6921.scala b/test/files/pos/t6921.scala
new file mode 100644
index 0000000000..36e70e5d2c
--- /dev/null
+++ b/test/files/pos/t6921.scala
@@ -0,0 +1,11 @@
+class Message(messageType: String, reason: Option[String])
+
+class ReproForSI6921 {
+
+ private[this] var reason = ""
+
+ def decideElection = {
+ val explanation = None
+ new Message("", reason = explanation)
+ }
+}