See: https://github.com/olafurpg/dotty/pull/2/files All three examples compile fine with scalac while dotc emits a compiler error. I don't know if these incompatibilities are intentional or known bugs.