Skip to content

Instantly share code, notes, and snippets.

@NN---
Created January 5, 2013 11:09
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 NN---/4461048 to your computer and use it in GitHub Desktop.
Save NN---/4461048 to your computer and use it in GitHub Desktop.
class XInt { public F() : void {} }
class XString { public G() : void {} }
class XObject
{
public static @()(_ : XObject, x : int) : XInt { XInt(); }
public static @()(_ : XObject, x : int) : XString { XString(); }
public X() : void {}
}
def xobject = XObject();
xobject.X();
xobject(1).F();
xobject("").G();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment