public class TestContraVariant { main(x) { var pair = m(x); return pair.a; } m(x) { var z = main(x); var y; x = y; return new Pair(z, y); } }