Do not report "can be private" on expect or actual declarations

So #KT-24374 Fixed
So #KT-24537 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-06-06 14:45:46 +03:00
parent 11acea51b7
commit d1155070a7
2 changed files with 14 additions and 4 deletions
@@ -209,3 +209,13 @@ fun withLocal(): Int {
class Math {
@test.anno.EntryPoint fun fact(n: Int) = if (n < 2) 1 else n * fact(n - 1)
}
expect class Expect {
fun foo()
val bar: Int
}
actual class Actual {
actual fun foo() {}
actual val bar = 42
}