Skip to content

actual type is 'kotlin.Int', but 'com.ucasoft.kcron.core.common.TimeGroups' was expected #31

@mgroth0

Description

@mgroth0

If I have the following code in a jvm desktop module:

import com.ucasoft.kcron.Cron
import com.ucasoft.kcron.core.extensions.hours


fun main() {
    Cron.builder().hours(1)
}

It looks all good in the IDE but I get a compiler error:

Argument type mismatch: actual type is 'kotlin.Int', but 'com.ucasoft.kcron.core.common.TimeGroups' was expected.

Stange that it looks good in the IDE. I am using kotlin 2.0.0-Beta4.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions