Reporter | Naz Junaid (naz) |
---|---|
Created | Jan 24, 2012 1:56:31 PM |
Updated | Jan 24, 2012 2:05:08 PM |
Priority | Normal |
Type | Bug |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | 6.1.1 |
Fixed in build | No Fixed in build |
ReSharper isn't happy with the following code
It highlights item4 and suggests a colon is required.
It appears the if statement above trips up the parser.
<script> var myObj = { item1: @Model.MyItem1, item2: @Model.MyItem2, @if (Model.MyItem3 != null) { @:item3: @Model.MyItem3, } item4: @Model.MyItem4 } </script>
It highlights item4 and suggests a colon is required.
It appears the if statement above trips up the parser.