Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

VB. NET: multiple object initializers are not parsed correctly #163

Open
@dgrunwald

Description

@dgrunwald

SD-1668, originally created on 5/8/2010 14:13:55 by Siegfried Pammer

Class Test
  Dim a, b, c, d As New Collection()
End Class

Expected: a, b, c and d all have a "Collection"-TypeReference and a
ObjectCreateExpression-initializer.
Actual: only d has a "Collection"-TypeReference and a
ObjectCreateExpression-initializer. a, b and c have a NullTypeReference
and no initializer.

After this bug is fixed, the VBNetOutputVisitor needs to be updated to
only output the TypeReference + Initializer for the last variable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions