Skip to content

Commit

Permalink
Merge pull request icsharpcode#508 from purenewman/patch-1
Browse files Browse the repository at this point in the history
Fixed incorrect members ordering
  • Loading branch information
Mike Krüger committed Dec 31, 2015
2 parents 554f008 + 2ba89eb commit bf10387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ICSharpCode.NRefactory.CSharp/Parser/mcs/membercache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ static MemberCore GetLaterDefinedMember (MemberSpec a, MemberSpec b)
if (a.DeclaringType.MemberDefinition != b.DeclaringType.MemberDefinition)
return mc_b;

if (mc_a.Location.File != mc_a.Location.File)
if (mc_a.Location.File != mc_b.Location.File)
return mc_b;

return mc_b.Location.Row > mc_a.Location.Row ? mc_b : mc_a;
Expand Down

0 comments on commit bf10387

Please sign in to comment.