Make breakpoints work in local functions in secondary constructors

This commit is contained in:
Nikolay Krasko
2016-11-22 17:40:52 +03:00
committed by Nikolay Krasko
parent 1889f4f7b1
commit 60e3c8eecd
6 changed files with 74 additions and 1 deletions
@@ -0,0 +1,19 @@
package stopInLocalFunInSecondaryConstructor
class Foo(bar: Any) {
constructor() : this(12) {
fun some() {
//Breakpoint!
nop()
nop()
}
some()
}
fun nop() {}
}
fun main(args: Array<String>) {
Foo()
}
@@ -0,0 +1,25 @@
package stopInlineCallInLocalFunInSecondaryConstructor
class Foo(bar: Any) {
constructor() : this(12) {
fun test() {
inlineFun {
//Breakpoint!
nop()
nop()
}
}
test()
}
fun nop() {}
}
fun main(args: Array<String>) {
Foo()
}
inline fun inlineFun(f: () -> Any) {
f()
}