work around scalac bug by removing `extends AnyVal`