class C { val x : String = y.toString() val y : Int = 3} object Main { def main (Array[String] args) { println("x = "+(new C()).x) }}
Standard input is empty
Main.scala:7: error: ':' expected but '[' found. def main (Array[String] args) { ^ Main.scala:10: error: identifier expected but '}' found. } ^ two errors found
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!