Scala continues to surprise
TIL that you can declare a (case) class in a method body. In other words the following is valid Scala code:
def foo(s: String): Unit = {
final case class Foo(i: Int)
}
Even after six years Scala continues to surprise.