Workaround bug in -Ydelamdafy:method

See: https://issues.scala-lang.org/browse/SI-8363