system.now().date() breaks references

Issue #691 resolved
Eric Alexander created an issue

When using:

System.assertEquals(system.now().date(),sObject.DateField,'Blah Blah Blah);

Having the now.date() breaks the references and highlighting

Using just system.now() and the system.now().addDays(-1) works just fine

Screen Shot 2017-08-18 at 11.03.49 PM.png

Comments (4)

  1. Scott Wells repo owner

    The fix will be in the next build. Basically Date is considered an Apex reserved word because it's a system type, so I had to add a parser exception to allow it to be used as an identifier as well. Thanks for reporting!

  2. Log in to comment