object Main extends App { class Q[T] class R[T <: Q[_]](obj: T) { println(obj) } new R(new Q[Int])}
Standard input is empty
Main$Q@bcf47
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!