Reporter | Steve Larsen (slarsen) |
---|---|
Created | Dec 16, 2018 1:27:05 AM |
Updated | Dec 16, 2018 1:27:05 AM |
State | Submitted |
Assignee | Unassigned |
Subsystem | No Subsystem |
Type | Bug |
Priority | Normal |
Browser | Any Browser |
OS | Any OS |
Fix versions | Unscheduled |
Affected versions | Unknown |
This is PHPStorm version 2018.3.
The code using a JSDoc comment where the type is identified as multiples (piped) -- e.g. @param {Object1|Object2} myparam
, shows properties of the object as unidentified. When the multiple types is removed for a single type -- e.g. @param {Object1} myparam
, then the properties of the object are identified correctly.
Example 1 - When multiple objects are defined for JSDoc param type:
Note when the model object is identified as multiple types, show the properties of the model (e.g. id and idAttribute), as unidentified...
Example 2 - When only a single object is defined for JSDoc param type:
Note when the model object is identified as a single type, show the properties of the model (e.g. id and idAttribute) as identified correctly.
Example 3 - Code assist works when multiple object types:
This is fascinating that while the properties are unidentified to Inspection, code assist clearly shows them...