Skip to content

[koin-compiler] Compilation doesn't fail #2359

@emartynov

Description

@emartynov

Describe the bug
I have next code:

interface Test {
    fun doSomething()
}

class TestTest: Test {
    override fun doSomething() {
        TODO("Not yet implemented")
    }
}

internal class MyViewModel(
    private val test: Test,
) : ViewModel() 

And koin module:

val myKoinModule = module {
      viewModel<MyViewModel>()
}

This just compiles.

Expected behavior
While I would expect compilation issue since Test is not provided in koin graph.

Koin module and version:
koin-core = "4.2.0-RC1"
koin-compiler-plugin = "0.3.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions