blob: 1af4b77df93ca64fd1bba7c46f59e830e2cc2cfb [file] [log] [blame]
Roman Elizarov1f74a2d2018-06-29 19:19:45 +03001/*
2 * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 */
4
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +03005package cases.localClasses
6
7class A {
8 fun a() : String {
9 class B() {
10 fun s() : String = "OK"
11
12 inner class C {}
13
14 }
15 return B().s()
16 }
17}
18
19
20class B {
21 fun a(p: String) : String {
22 class B() {
23 fun s() : String = p
24 }
25 return B().s()
26 }
27}