"Illegal Assignment" incorrect inspection error
Issue #840
resolved
I have an custom object named "Program__c", which has a field also named "Program__c".
The following line gives me an inspection error (Organization__c is a relationship field back to the standard Account object):
Program__c testProgram = new Program__c(Organization__c = testAccount.Id, Program__c = 'Architect/Home Plan Designer');
The inspection error provided is: Illegal assignment from String to Program__c
The code saves/compiles fine, so this is cosmetic
Comments (4)
-
reporter -
repo owner Thanks for logging, Alex. I'll take a look for the next build.
-
repo owner Alex, I believe I'll have this fixed in the next build. Let me know once I release it and you update whether you still see the issue.
-
repo owner - changed status to resolved
Prospective fix delivered in 2.0.0.6. Please reopen if you continue to see this issue after updating.
- Log in to comment
Using v2.0.0.5 & Intellij 2017.3.2