How can I pass the reference of an object to method in Scala? E.g. I want this to compile
object Constants { val constantA:Double = ??? } def calc(number
Look at the synthax of your method definition: what does your calc method produce ? Unit ? Int ? I suggest that you review the basics of the Scala synthax first