[Mono-bugs] [Bug 625583] gmcs emits unused field warning on field used as argument to method invocation

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Nov 20 21:03:50 EST 2010



Michael Shimmins <michael.shimmins at lexim.com.au> changed:

           What    |Removed                     |Added
                 CC|                            |michael.shimmins at lexim.com.
                   |                            |au

--- Comment #4 from Michael Shimmins <michael.shimmins at lexim.com.au> 2010-11-21 02:03:47 UTC ---
dmcs is producing the same error:

    public class PermissionService
        private readonly IUserService userService;


        public bool HasPermission(string permissionName)
            var userPermissions = new List<Permission>();

            var systemRoles = (
                from e 
                in systemRoleRepository.Entities 
                where e.User.Username.Equals(userService.CurrentUser.Username)
                select e


This isn't conditional as Debug.Assert may be, it is always called.  Commenting
out the field definition causes CS0103.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list