Re: A little Scala 2.12 help

2017-09-19 Thread Jacek Laskowski
Hi, Nice catch, Sean! Learnt this today. They did say you could learn a lot with Spark! :) Pozdrawiam, Jacek Laskowski https://about.me/JacekLaskowski Spark Structured Streaming (Apache Spark 2.2+) https://bit.ly/spark-structured-streaming Mastering Apache Spark 2

Re: A little Scala 2.12 help

2017-09-19 Thread Sean Owen
I figured this out. It's another effect of a new behavior in 2.12: Eta-expansion of zero-argument method values is deprecated Imagine: def f(): String = "foo" def g(fn: () => String) = ??? g(f) works in 2.11 without warning. It generates a warning in 2.12, because it wants you to explicitly make

A little Scala 2.12 help

2017-09-15 Thread Sean Owen
I'm working on updating to Scala 2.12, and, have hit a compile error in Scala 2.12 that I'm strugging to design a fix to (that doesn't modify the API significantly). If you "./dev/change-scala-version.sh 2.12" and compile, you'll see errors like... [error]