summaryrefslogtreecommitdiff
path: root/test/files/res/t5489/t5489.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/res/t5489/t5489.scala')
-rw-r--r--test/files/res/t5489/t5489.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/res/t5489/t5489.scala b/test/files/res/t5489/t5489.scala
new file mode 100644
index 0000000000..f821a1a9b6
--- /dev/null
+++ b/test/files/res/t5489/t5489.scala
@@ -0,0 +1,14 @@
+package repro
+
+trait HasString {
+ def blerg(): String
+}
+
+class CausesProblems {
+ def problems = (
+ if ("don't optimize me away!".length == 0)
+ new HasString { def blerg() = "wut" }
+ else
+ new HasString { def blerg() = "okay" }
+ ).blerg()
+}