Files
kotlin-fork/compiler/testData/loadJava/compiledKotlin/class/ClassMemberConflict.kt
T
Dmitriy Novozhilov 6287968511 [FIR Test] Migrate AbstractFirLoadCompiledKotlin to new test infrastructure
Also introduce two different modes for those tests:
- load metadata compiled with K1
- load metadata compiled with K2
2023-04-19 14:33:25 +00:00

48 lines
820 B
Kotlin
Vendored

//ALLOW_AST_ACCESS
// IGNORE_FIR_METADATA_LOADING_K2
// Ignore reason: KT-58028
package test
class ConstructorTypeParamClassObjectTypeConflict<test> {
companion object {
interface test
}
val some: test? = throw Exception()
}
class ConstructorTypeParamClassObjectConflict<test> {
companion object {
val test = { 12 }()
}
val some = test
}
class TestConstructorParamClassObjectConflict(test: String) {
companion object {
val test = { 12 }()
}
val some = test
}
class TestConstructorValClassObjectConflict(val test: String) {
companion object {
val test = { 12 }()
}
val some = test
}
class TestClassObjectAndClassConflict {
companion object {
val bla = { 12 }()
}
val bla = { "More" }()
val some = bla
}