Debugger: suppress UNSAFE_CALL diagnostic in debug mode

This commit is contained in:
Natalia Ukhorskaya
2014-12-26 15:04:44 +03:00
parent b709baa9b4
commit 8dcb4ab5bb
4 changed files with 32 additions and 1 deletions
@@ -0,0 +1,15 @@
package unsafeCall
// this test is used also to check more than one file for package in JetPositionManager:prepareTypeMapper. see forTests/simple.kt
fun main(args: Array<String>) {
val s1: String? = "a"
val s2: String? = null
//Breakpoint!
args.size
}
// EXPRESSION: s1.length()
// RESULT: 1: I
// EXPRESSION: s2.length()
// RESULT: java.lang.NullPointerException: Ljava/lang/NullPointerException;