Skip to content

[Visual D] Certain templates such as std.container.array.Array do not show suggestions/autocompletions when in different scope to where it was instantiated. #198

@Sewer56

Description

@Sewer56

This is a very simple to describe issue that I have come across when I have started off programming with D in a Visual D environment:

When the scope of a template instantiated item differs from the scope of when it was instantiated, there is a lack of suggestions from the parser.

A set of images would best suffice to explain.

Same scope as in instantiation (destination is defined in the same method):
Image 1

Different scope (passed as function parameter):
Image 2

This can also be very easily replicated in an empty, clean module - no suggestions appear when accessing a template instantiated item in a different scope:

Image 3

This can also be replicated by trying to access a module level variable from a method:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions