summaryrefslogblamecommitdiff
path: root/test/files/res/t5489/t5489.scala
blob: f821a1a9b6a4b630257d9316e9c84e30f4bb18a0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
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()
}