generics ambiguity demo