fork download
  1. object Main extends App {
  2. class Privates {
  3. private val a: Int = 5;
  4. private[this] val b: String = "aaa";
  5.  
  6. def equalsByA(that: Privates): Boolean =
  7. a == that.a
  8.  
  9. def equalsByB(that: Privates): Boolean =
  10. b == that.b
  11. }
  12. }
Compilation error #stdin compilation error #stdout 0.45s 44788KB
stdin
Standard input is empty
compilation info
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]).
stdout
Standard output is empty