Skip to content

Missing completion after 'ref' #25569

@Neme12

Description

@Neme12

Missing 'readonly' keyword for local declaration:

class C
{
    void M()
    {
        ref $$	// expected 'readonly'
    }
}

(works fine outside methods)

Missing type symbol & keyword completion after ref & ref readonly type

class C
{
    ref $$ // expected 'System', 'int'...
    ref readonly $$ // expected 'System', 'int'...
}
class C
{
    void M()
    {
        ref $$	// expected 'System', 'int'..., 'var'
	ref readonly $$	// expected 'System', 'int'..., 'var'
    }
}

Missing expression symbol & keyword completion after ref expression

class C
{
    void M()
    {
        int value;
        ref int x = ref $$ // expected 'value', 'System', 'int'...
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEResolution-FixedThe bug has been fixed and/or the requested behavior has been implemented

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions