Weaken PRIVATE_CLASS_MEMBER_FROM_INLINE diagnostic
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import test.*
|
||||
|
||||
fun box() : String {
|
||||
return Test().run()
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package test
|
||||
|
||||
class Test {
|
||||
private abstract class Base {
|
||||
protected fun duplicate(s: String) = s + "K"
|
||||
|
||||
protected inline fun doInline(block: () -> String): String {
|
||||
return duplicate(block())
|
||||
}
|
||||
}
|
||||
|
||||
private class Extender: Base() {
|
||||
fun doSomething(): String {
|
||||
return doInline { "O" }
|
||||
}
|
||||
}
|
||||
|
||||
fun run(): String {
|
||||
return Extender().doSomething();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user