[.237] Falsely reported errors

Hi,

The following code snippet below compiles fine, however, R# reports four
errors. These are:

Cannot convert source type 'System.Collections.Generic.IList' to target type 'System.Collections.Generic.IList' (on line 2 of snippet) Argument type System.Collections.Generic.IList' is not assignable to parameter type 'System.Collections.Generic.IList' (on line 3 and on line 9 of snippet) Argument type System.DateTime' is not assignable to parameter type 'System.DateTime' (on line 8 of snippet)

1 public SmartToolDerivedData ImmeadiateMeasurement() {
2            IList toolData = measure.ImmeadiateMeasurement();
3            SmartToolRawData raw = DataFactory.Make( toolData, 0, 
DateTime.Now, 0 );
4            return raw.GetDerivedData();
5        }
6
7        private SmartToolRawData DownloadRawDataFromTool(int recordNum, 
double depth, DateTime date) {
8            IList toolData = measure.DownloadRawData( recordNum, 
depth, date );
9            SmartToolRawData raw = DataFactory.Make( toolData, depth, 
date, recordNum );
10            return raw;
         }
]]>

I hope this is useful to you.

Cheers
Barry Carr

1 comment
Comment actions Permalink

Unfortunately, this info isn't enough to reproduce the problem.
Please could you try to create small solution which shows this problem?

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Barry Carr" <barrycarr@ixian-software.com> wrote in message
news:e2qne8$5ru$1@is.intellij.net...

Hi,

>

The following code snippet below compiles fine, however, R# reports four
errors. These are:

>

Cannot convert source type 'System.Collections.Generic.IList<int>' to
target type 'System.Collections.Generic.IList<int>' (on line 2 of snippet)

>

Argument type System.Collections.Generic.IList<int>' is not assignable to
parameter type 'System.Collections.Generic.IList<int>' (on line 3 and on
line 9 of snippet)

>

Argument type System.DateTime' is not assignable to parameter type
'System.DateTime' (on line 8 of snippet)

>
>

<code>
1 public SmartToolDerivedData ImmeadiateMeasurement() {
2 IList<int> toolData = measure.ImmeadiateMeasurement();
3 SmartToolRawData raw = DataFactory.Make( toolData, 0,
DateTime.Now, 0 );
4 return raw.GetDerivedData();
5 }
6
7 private SmartToolRawData DownloadRawDataFromTool(int recordNum,
double depth, DateTime date) {
8 IList<int> toolData = measure.DownloadRawData( recordNum,
depth, date );
9 SmartToolRawData raw = DataFactory.Make( toolData, depth,
date, recordNum );
10 return raw;
}
</code>

>

I hope this is useful to you.

>

Cheers
Barry Carr



0

Please sign in to leave a comment.