Skip to content

Documentation on hover doesn't work with shortened method syntax. #426

@k2aj

Description

@k2aj

Documentation on hover doesn't show up for functions which use shortened method syntax (-preview=shortenedMethods).

E.g. in the following code documentation on hover works for fun(), but not for gun():

import std.stdio;

/// Comment
int fun() {return 13;} 

/// Other comment
int gun() => 42;

void main()
{
	writeln(gun());
	writeln(fun());
}

Serve-d log file

code-d: 0.23.2
serve-d: 0.7.4
dcd: 0.13.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions