// SKIP_TXT interface Generic fun Generic.getValue(x: X): Y = TODO() class MyPair(a: A, b: B) fun foo(x: Generic, e: E, c: Generic): MyPair { if (c === x && e is Int) { bar(MyPair(x.getValue(e), x.getValue(e))) return MyPair(x.getValue(e), x.getValue(e)) } return MyPair(x.getValue(e), x.getValue(e)) } fun bar(p: MyPair) {}