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

RSRP-288022: Move to outer scope does not work in razor

$
0
0
Reporter Sergey Coox (coox) Sergey Coox (coox)
Created Jan 26, 2012 7:05:46 PM
Updated Jan 26, 2012 7:05:46 PM
Priority Critical
Type Bug
Fix versions Next
State Open
Assignee Dmitry Osinovsky (Dmitry.Osinovsky)
Subsystem Refactoring
Affected versions No Affected versions
Fixed in build No Fixed in build
Default razor app. Move SimpleModel outside
@functions {public class SimpleModel
            {
              public SimpleModel(string foo, int i)
              {}
            }
}
@{
    ViewBag.Title = "Home Page";
}

<h2>@ViewBag.Message</h2>
<p>
  To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.
  @Url.Action("SimpleModel", new SimpleModel ("foo", 12)) <br />
  @Url.Action("ComplexModel", new ComplexModel(MyEnum.AAA,new SimpleModel ("foo", 12))) <br />
</p>

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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