val f = { x :Int => x } val g = f.asInstanceOf[Int, Unit] g(1) //works
How brittle is the above code? It works currently, but of course it is no