Properly capture local functions

Local functions in local classed wasn't captured properly
This commit is contained in:
Mikhael Bogdanov
2013-03-26 20:15:06 +04:00
parent 8f6c9d73b1
commit ad4eeb3f8a
10 changed files with 94 additions and 21 deletions
@@ -0,0 +1,14 @@
//adopted snippet from kdoc
open class KModel {
val sourcesInfo: String
;{
fun relativePath(psiFile: String): String {
return psiFile;
}
sourcesInfo = relativePath("OK")
}
}
fun box():String {
return KModel().sourcesInfo;
}