Skip to content

Instantly share code, notes, and snippets.

@RyanBreaker
Last active March 4, 2016 14:46
Show Gist options
  • Save RyanBreaker/170341cb3eaf44fa97f9 to your computer and use it in GitHub Desktop.
Save RyanBreaker/170341cb3eaf44fa97f9 to your computer and use it in GitHub Desktop.
class Vehicle {}
class Car extends Vehicle {}
ArrayList<Car> cAl = new ArrayList<>();
void stuff(ArrayList<Vehicle> al) {}
stuff(cAl); // Mismatched type?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment