Skip to content

Calling a method that returns 'itself' on a multi-value should not lose multi-value structure? #12143

@radeusgd

Description

@radeusgd

I think that indeed it is undesirable to lose the multi value structure in methods such as:

type My_Type
    method self = if self.some_property then self else 0

This is demonstrated in ffe1172.

FYI:

Metadata

Metadata

Labels

Type

No type

Projects

Status

🟢 Accepted

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions