Make breakpoints work in local functions in secondary constructors
This commit is contained in:
committed by
Nikolay Krasko
parent
1889f4f7b1
commit
60e3c8eecd
Vendored
+19
@@ -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()
|
||||
}
|
||||
+25
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user