summaryrefslogblamecommitdiff
path: root/test/files/neg/forgot-interpolator.check
blob: 1aad3b0003309595c955e4ffb1887e52c60fd4ba (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                                                      

                                                 
                                                                                                                   




                                                                 
forgot-interpolator.scala:4: warning: `$bippy` looks like an interpolated identifier! Did you forget the interpolator?
  def f = "Put the $bippy in the $bippy!" // warn
          ^
forgot-interpolator.scala:14: warning: That looks like an interpolated expression! Did you forget the interpolator?
  def f = """Put the ${println("bippy")} in the bippy!""" // warn
          ^
error: No warnings can be incurred under -Xfatal-warnings.
two warnings found
one error found