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

Labels

languageChanges to the language (grammar or semantics)

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions