Check for exposed local classes (or objects) in type signatures

This commit is contained in:
Dmitry Petrov
2015-10-09 09:47:10 +03:00
parent cbf4e4a973
commit 7e51fb8521
22 changed files with 364 additions and 47 deletions
@@ -6,14 +6,14 @@ fun <T> run(f: () -> T): T {
return f()
}
fun foo(a: Int) = run {
private fun foo(a: Int) = run {
object {
inner class A
fun foo() = A()
}.foo()
}
fun foo() = run {
private fun foo() = run {
object {
inner class A
fun foo() = A()