fun foo(a: Int): Int { var x = a; var y = x++; if (y+1 != x) return -1; return x; }