Add tests for KT-17929

This commit is contained in:
Mikhail Glukhikh
2017-05-19 14:39:14 +03:00
parent d9e4b445b9
commit 0fd70df681
9 changed files with 80 additions and 0 deletions
@@ -0,0 +1,12 @@
fun bar(arg: Any?) = arg
fun foo() {
var s: String?
s = null
try {
s = "Test"
} catch (ex: Exception) {}
bar(<!DEBUG_INFO_CONSTANT!>s<!>)
if (<!SENSELESS_COMPARISON!><!DEBUG_INFO_CONSTANT!>s<!> != null<!>) { }
<!DEBUG_INFO_CONSTANT!>s<!><!UNSAFE_CALL!>.<!>hashCode()
}