Files
kotlin-fork/compiler/testData/diagnostics/testsWithExplicitApi/companionObject.kt
T
Leonid Startsev 43858e8169 Do not include annotations and KDoc into NO_EXPLICIT_VISIBILITY_IN_API_MODE report range
Rename positioning strategy to better reflect its behavior.
#KT-36021 fixed.
2020-01-23 17:05:51 +03:00

16 lines
331 B
Kotlin
Vendored

// SKIP_TXT
public class Bar {
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>companion object<!> {}
}
public class Bar2 {
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>companion object MyCompanion<!> {}
}
public class Bar3 {
/**
* Nested object KDoc
*/
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>object NestedObject<!> {}
}