Compile time validation using inline modifier in Scala 3