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

RSRP-284890: Errorneous "Duplicate 'public' modifier"

$
0
0
Reporter Markus Bruckner (markus.bruckner) Markus Bruckner (markus.bruckner)
Created Dec 3, 2011 2:27:46 PM
Updated Feb 10, 2012 6:54:08 AM
Resolved Dec 14, 2011 2:04:03 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Won't fix
Assignee Evgeny Pasynkov (pasynkov)
Subsystem Code Analysis
Affected versions 6.1
Fixed in build No Fixed in build
Occured in
JetBrains ReSharper 6.1 EAP Full Edition Pre-Release
Build 6.1.20.125 on 2011-12-02T00:45:54

I added a property in the following class:
    public class ArgumentHelper
    {
        private readonly object[] _argsForCall;

        public ArgumentHelper(object[] argsForCall)
        {
            _argsForCall = argsForCall;
        }

        public TArgument FirstArgument<TArgument>()
        {
            return (TArgument) _argsForCall.First();
        }

        public TArgument Argument<TArgument>(int number)
        {
            return UntypedArguments.Skip(number-1).Cast<TArgument>().First();
        }

        // the property was added here

        // the public modifier of this method was highlighted
        public IEnumerable<TArgument> Arguments<TArgument>()
        {
            return _argsForCall.Cast<TArgument>();
        }
    }

Added Property

        public object[] UntypedArguments
        {
            get { return _argsForCall; }
        }


Closing and reopening the file does fix the problem.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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