Weaken PRIVATE_CLASS_MEMBER_FROM_INLINE diagnostic

This commit is contained in:
Michael Bogdanov
2016-02-11 17:41:03 +03:00
parent 384d2ea0d1
commit 4f0f81155a
7 changed files with 56 additions and 3 deletions
@@ -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();
}
}