Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Chaining w/ on UDTs with large numbers of named items causes stack overflow #150

@cgranade

Description

@cgranade

Describe the bug

When chaining the w/ operator several times on UDTs with large numbers of named items (on my machine, this first happens on UDTs with 8 items), an uncatchable stack overflow exception results.

To Reproduce

newtype OverflowType = (
    A: String,
    B: String,
    C: String,
    D: String,
    E: String,
    F: String,
    G: String,
    H: String,
    I: String,
    J: String
);

function OverflowCase() : OverflowType {
    return Default<OverflowType>()
        w/ A <- "a"
        w/ B <- "b"
        w/ C <- "c"
        w/ D <- "d"
        w/ E <- "e";
        
}

Expected behavior

A UDT value correctly initialized with the given named items.

Actual behavior

image

System information

  • OS: Windows 10

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions