Anonymous apex fails to detect grammar when a class is defined within window
Issue #1865
resolved
List<String> strings = new List<String>();
strings.add('123');
strings.add('123');
System.debug(strings);
public class NewString{
public String value;
public NewString(String value){
this.value = value;
}
}
Set<NewString> uniqueStrings = new Set<NewString>();
uniqueStrings.add(new NewString('123'));
uniqueStrings.add(new NewString('123'));
System.debug(uniqueStrings);
Anonymous apex fails to understand the grammar for above snippet but runs successfully as shown in image.
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Delivered in 2.1.7.5.
- Log in to comment
Fix committed for inclusion in the next build.