See - https://github.com/playframework/twirl/pull/461#issuecomment-1066378493 - https://github.com/lampepfl/dotty/issues/14691 - https://github.com/sbt/zinc/issues/1074#issuecomment-1073247308 Following commit could then be reverted eventually: https://github.com/playframework/twirl/commit/e892f83f9b97a56cddafd50e59bd88f9bbaf8557