Created
January 8, 2014 23:08
-
-
Save capeterson/8326438 to your computer and use it in GitHub Desktop.
Apex List.addAll doesn't allow adding subclasses of the list's type properly.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<SObject> l = new List<Sobject>(); | |
l.addAll(new List<Contact>()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Results in a compile failure: Incompatible argument type LIST for All method on LIST