Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View Ugly.java
1 2 3 4 5 6 7
package mypkg;
 
public class Ugly {
public Ugly(){}
public String foo(boolean i) { return "bool: " + i; }
public String foo(Object o) { return "obj: " + o; }
}
View Ugly.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
(.foo (mypkg.Ugly.) 5)
;=> "obj: 5"
 
(.foo (mypkg.Ugly.) true)
;=> "obj: true"
 
(.foo (mypkg.Ugly.) (boolean true))
;=> "bool: true"
 
 
(def u (mypkg.Ugly.))
(.foo u (boolean true))
;=> "obj: true"
 
(.foo #^mypkg.Ugly u (boolean true))
;=> "bool: true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.