Skip to content

Instantly share code, notes, and snippets.

@msridhar
Last active December 16, 2015 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msridhar/5430376 to your computer and use it in GitHub Desktop.
Save msridhar/5430376 to your computer and use it in GitHub Desktop.
class A {
Object id(Object x) {
return x;
}
}
main() {
A a = new A(); // a1
Object x = new Object(); // o1
Object y = new Object(); // o2
Object z = a.id(x); // z -> o1
Object w = a.id(y); // w -> o2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment