Skip to content

Generics in Kotlin codegen #88

Open
@nikitavlaev

Description

@nikitavlaev

Description

Extract type variables from the available structures inside the engine and put them into the result model.

Expected behavior

Kotlin code should be generated with generics where it is required.
Framework tests should pass with compilation for Kotlin enabled.
Additional testing on contest estimator is to be done.

Environment

Not applicable

Potential alternatives

Not applicable

Context

Generic types are much more often required in Kotlin than in Java(e.g. collections), so additional support for them is to be made.
Currently, generated Kotlin code does not use generics, and thus a lot of code does not compile.

Metadata

Metadata

Assignees

Labels

comp-codegenIssue is related to code generatorctg-enhancementNew feature, improvement or change requestlang-kotlinIssue is related to Kotlin language support

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions