Error matching Nil in line val m.Source(m.Pkg(_, stats) :: Nil) = source.transform {
// Remove bodies from methods like `private def foo: Unit` that can't be abstract.
case m.Defn.Def(mods, name, tparams, paramss, Some(decltpe), _) =>
m.Decl.Def(mods, name, tparams, paramss, decltpe)
}
Fails with:
which is here:
https://github.com/scalacenter/scalafix/blob/ffb57a102a1f3a70c41b51778bb3a4811d3e492b/scalafix-tests/unit/src/test/scala/scalafix/tests/core/PrettyTypeSuite.scala#L31-L35