History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-29095
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Eugene Pasynkov
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

'error CS0029: Cannot implicitly convert...' is not detected

Created: 27 Sep 06 14:28   Updated: 28 Aug 08 14:39
Component/s: Code Analysis
Fix Version/s: 4.5
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 262


 Description  « Hide
ReSharper cannot detect the following errors:
using System;
class A
{
    static void Main()
    {
        new TypedReference().GetType(); // error CS0029: Cannot implicitly convert type 'System.TypedReference' to 'object'
        new TypedReference().ToString(); // error CS0029: Cannot implicitly convert type 'System.TypedReference' to 'System.ValueType'
    }
}

ECMA-335 (CLI)

8.2.4 Boxing and unboxing of values

A type is
boxable if it is one of the following:
• A value type (including instantiations of generic value types) that does not contain fields that can point into
the CIL evaluation stack
[Rationale: A value type that does contain such fields cannot be boxed, else those embedded pointers
could outlive the entries in the CIL evaluation stack to which they point; e.g.,
System.RuntimeArgumentHandle, System.TypedReference. Value types that contain such pointers are
informally described as "byref-like" value types. end rationale]



 All   Comments   Work Log   Change History      Sort Order: