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

RSRP-298286: Structural search cannot match open generic types

$
0
0
Reporter Igal Tabachnik (hmemcpy) Igal Tabachnik (hmemcpy)
Created Apr 29, 2012 11:05:29 PM
Updated Apr 29, 2012 11:07:03 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Victor Kropp (victor.kropp)
Subsystem Structured Patterns (SSR)
Affected versions No Affected versions
Fixed in build No Fixed in build
I'm trying to find the following expression: typeof($type$) where $type$ is a TypePlaceholder.

This doesn't seem to match open generic types, i.e. typeof(IEnumerable<>). It works fine on typeof(IEnumerable<string>), for example.

What's more, if I try to match this via the API, if I call QuickMatch() with the IInvocationExpression element, I get true, but calling Match() will return a NotMatched result.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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