//> using options -Werror -Xsource:3 -Xsource-features:leading-infix

class Channel {
  def ! (msg: String): Channel = this
  def send_! (msg: String): Channel = this
}

class Test {
  val x = 1
    + 2
    + 3

  val c = new Channel()

  def send() =
    c ! "hello"
      ! "world"
      send_! "!"

  val b: Boolean =
    "hello".isEmpty
    && true &&
    !"hello".isEmpty

  val b2: Boolean = {
    println(x)
    !"hello".isEmpty
    ???
  }
}
