I recently learnt a way of knowing the type of a variable by using the compiler. Just write val x: SomeRandomType = _ and wait for the compiler to check it. Is ther
val x: SomeRandomType = _