85d07e5f6d
#KT-12278 Fixed #KT-12147 Fixed #KT-12366 Fixed #KT-12122 Fixed
27 lines
776 B
Kotlin
Vendored
27 lines
776 B
Kotlin
Vendored
// "Add qualifier" "true"
|
|
// FIXTURE_CLASS: org.jetbrains.kotlin.idea.spring.tests.SpringTestFixtureExtension
|
|
// CONFIGURE_SPRING_FILE_SET
|
|
// WITH_RUNTIME
|
|
// DISABLE-ERRORS
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired
|
|
import org.springframework.stereotype.Component
|
|
import org.springframework.context.annotation.ComponentScan
|
|
import org.springframework.context.annotation.Configuration
|
|
import org.springframework.beans.factory.annotation.Qualifier
|
|
|
|
@Configuration
|
|
@ComponentScan
|
|
open class InvalidAutowiredByTypeQualifiers
|
|
|
|
abstract class BaseBarBean
|
|
@Component
|
|
open class BarBean1 : BaseBarBean()
|
|
@Component
|
|
open class BarBean2 : BaseBarBean()
|
|
|
|
@Component
|
|
open class MultipleAutowiredCandidates() {
|
|
@Autowired
|
|
lateinit var <caret>bean: BaseBarBean
|
|
} |