Skip to content

Type inference assigns boxed type to calculated attribute #135

@larsk21

Description

@larsk21

The type of a calculated attribute, if not explicitly specified, is inferred from the Xbase expression describing the calculation. If the result of the Xbase expression is a boxed type, we should probably assign the unboxed type to the attribute.

Example:

from Film films
group by films.year
create Summary {
    year := films.same[ it.year ] // EIntegerObject instead of EInt
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    languageChanges to the language (grammar or semantics)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions