Leda IU 123.111: Returned expression type Boolean is not assignable to type true
I have a warning as in the attachment. Does anybody know what IntelliJ IDEA is trying to tell me?
By the way, thank JetBrains for chopping off the Idea price for 75% on the appocalypse day last year :)
Attachment(s):
Untitled.png
Please sign in to leave a comment.
Am I correct that your function has preceding comment like /** @return true if something */ ? IDEA thinks that 'true' is function's return type in this case. Please use type annotation in JSDoc: /** @return {boolean} true if something */. Quick doc will work fine also.
If this isn't your case, please provide screenshot with function's JSDoc comment.
Regards,
Konstantin