Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-427295: Wrong smart completion

$
0
0
Reporter Dmitry Osinovsky (Dmitry.Osinovsky) Dmitry Osinovsky (Dmitry.Osinovsky)
Created Nov 5, 2014 3:23:47 PM
Updated Apr 20, 2018 4:41:52 PM
Resolved Apr 20, 2018 4:41:52 PM
Subsystem IntelliSense (Code Completion)
Assignee Andrew Serebryansky (marcus23)
Priority Normal
State Can't Reproduce
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
    [NotNull]
public static IJsUnresolvedType GetReturnType(this IJsUnresolvedType type, IJsDocumentOffsetProvider context, int paramNumber, JsUnresolvedTypeArray invocationInfo)
{
....
}

return GetInvocationType(context).GetReturnType({caret}-1, JsUnresolvedTypeArray.NoList);

Suggests integer data, like GetHashCode(), instead of IJsDocumentOffsetProvider. Change -1 to 1 and everything works.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>