class Test {
	
	def main() {
		Object x = [1,2,3]
		foo(x)
	}

	void foo(Collection coll) {
		System.out.println("coll")
	}
	
	void foo(Object obj) {
		System.out.println("obj")	
	}
}

new Test().main()