Skip to content

Cannot compile code with expect type #303

Closed
@micHar

Description

@micHar

I'm using your fantastic library to test my multiplatform annotation processor which uses common source code and generates ios source sets. The tests look sth like this.

Now everything works fine until I add expect modifier to the test code, e. g. expect interface InterfaceGenerationExample. There is a COMPILATION_ERROR and the error is e: /var/folders/8n/.../T/.../sources/interface1.kt: (7, 1): The feature "multi platform projects" is experimental and should be enabled explicitly.
Right now the tests are run in jvmTest sourceSet, but I also tried running them in commonTest source set and the result is the same. For both kapt and ksp.

Is there any way to test code with expect / actual modifiers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions