fork download
  1. object Main extends App {
  2. class Foo {
  3. class Bar { // non-private inner class
  4. def someSecretMethod = "I've got ya!"
  5. }
  6. }
  7.  
  8. val wrong = new Foo.Bar.someSecretMethod
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/opt/scala/bin/scalac: line 50: /dev/null: Permission denied
Main.scala:8: error: not found: value Foo
  val wrong = new Foo.Bar.someSecretMethod
                  ^
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