Created
February 7, 2013 02:19
-
-
Save jimmydivvy/4727876 to your computer and use it in GitHub Desktop.
This code triggers the following error: "System.UnexpectedException: User defined type found in unsupported code path" when a debug console is open. To replicate, create this as a class, and enable the "Override log filters" setting on the class within Develop -> Classes
This file contains hidden or 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
| public class TestSalesforceBug { | |
| enum Day { | |
| MON, TUE, WED, THU, FRI | |
| } | |
| @IsTest static void testMe(){ | |
| Set<Day> d = new Set<Day>{ | |
| Day.MON, Day.TUE, Day.WED | |
| }; | |
| if( d.contains( Day.MON )){ | |
| System.debug('Has Monday'); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment