Roman Elizarov | 1f74a2d | 2018-06-29 19:19:45 +0300 | [diff] [blame^] | 1 | /* |
2 | * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. | ||||
3 | */ | ||||
4 | |||||
Vsevolod Tolstopyatov | 74bcc92 | 2018-05-03 20:07:54 +0300 | [diff] [blame] | 5 | package cases.localClasses |
6 | |||||
7 | class 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 | |||||
20 | class B { | ||||
21 | fun a(p: String) : String { | ||||
22 | class B() { | ||||
23 | fun s() : String = p | ||||
24 | } | ||||
25 | return B().s() | ||||
26 | } | ||||
27 | } |