[TEST] Migrate AbstractDiagnosticsWithExplicitApi to new test runners

This commit is contained in:
Dmitriy Novozhilov
2020-12-09 12:28:49 +03:00
parent c0e4452cf8
commit 23e704f361
27 changed files with 373 additions and 104 deletions
@@ -0,0 +1,47 @@
// SKIP_TXT
/**
* KDoc for Foo1
*/
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>class Foo1<!>() {}
public class Foo2() {
/**
* KDoc for method
*/
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>fun method<!>() {}
/**
* KDoc for method2
*/
public fun method2() {}
private fun method3() {}
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>fun <!NO_EXPLICIT_RETURN_TYPE_IN_API_MODE!>implicit<!><!>() = 10
public fun <!NO_EXPLICIT_RETURN_TYPE_IN_API_MODE!>implicit2<!>() = 10
public fun implicit3(): Int = 10
}
public open class ClassWithOpen() {
/**
* KDoc for method
*/
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>fun method<!>() {}
/**
* KDoc for openMethod
*/
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>open fun openMethod<!>() {}
}
public data class FooData(val i: Int, val s: String)
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>data class FooData2<!>(val i: Int, val s: String)
public class WithNested {
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>class Nested<!> {}
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>inner class Inner<!> {}
}
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>enum class Foo<!> { A, B }
public enum class Bar { A, B }