Main.scala:16: error: type mismatch;
found : Main.SimpleVirtualMachine[Int]
required: Main.VirtualMachine[A forSome { type A }]
Note: Int <: A forSome { type A }, but trait VirtualMachine is invariant in type A.
You may wish to define A as +A instead. (SLS 4.5)
compileAndRun(intVM(1))
^
one error found
spoj: The program compiled successfully, but Main.class was not found.
Class Main should contain method: def main(args: Array[String]).