object Main extends App { class Privates { private val a: Int = 5; private[this] val b: String = "aaa"; def equalsByA(that: Privates): Boolean = a == that.a def equalsByB(that: Privates): Boolean = b == that.b }}
Standard input is empty
Main.scala:10: error: value b is not a member of Main.Privates b == that.b ^ one error found spoj: The program compiled successfully, but Main.class was not found. Class Main should contain method: def main(args: Array[String]).
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!