As I understand it, python pass used for cases not yet implemented. If you need such a thing in scala, then use ??? it is similar to () , but is a single instance of Nothing. Your code will be compiled, but if you call such a method, it will work with NotImplementedError
def foo: ResultType = ???
source share