Make isFromJava check work for SAM adapter extension descriptors (KT-21538)

Consider all callable descriptor in JavaClassDescriptor to be from Java.

This is used to check if smart step into should be intercepted by Kotlin
handler or delegated to Java.

 #KT-21538 Fixed
This commit is contained in:
Nikolay Krasko
2017-12-12 18:47:59 +03:00
parent 26413acf33
commit d6cface66f
5 changed files with 38 additions and 3 deletions
@@ -0,0 +1,9 @@
package javaSamFunction
import forTests.MyJavaClass
fun main(args: Array<String>) {
val klass = MyJavaClass()
//Breakpoint!
klass.other { /* do nothing*/ }
}