// ISSUE: KT-37115 fun test1(foo: String?) { foo != null || throw IllegalArgumentException() foo.length } fun test2(foo: String?) { foo != null || return foo.length } fun test3(foo: String?) { while (true) { foo != null || continue foo.length } } fun test4(foo: String?) { while (true) { foo == null || break foo.length } foo.length } fun test5(foo: String?) { while (true) { foo != null || break foo.length } foo.length } fun test6(foo: String?) { var i = 0 while (i == 0) { foo == null || break foo.length } foo.length } fun test7(foo: String?) { for (i in 1..3) { foo != null || break foo.length } } fun test8(foo: String?) { foo == null && throw IllegalArgumentException() foo.length } fun test9(foo: String?) { foo == null && return foo.length } fun test10(foo: String?) { while (true) { foo == null && continue foo.length } foo.length } fun test11(foo: String?) { for (i in 1..3) { foo == null && continue foo.length } } fun test12(foo: String?) { while (true) { foo != null && break foo.length } foo.length } fun test13(foo: String?) { var i = 0 while (i == 0) { foo != null && break foo.length } foo.length } fun test14(foo: String?) { while (true) { foo == null && break foo.length } foo.length } fun test15(foo: String?) { for (i in 1..3) { foo != null && break } foo.length } fun test16(foo: String?) { for (i in 1..3) { foo == null && break foo.length } foo.length } fun test17(foo: Any?) { foo !=null && foo is String? || throw IllegalArgumentException() foo.length } fun test18(foo: Any?) { foo != null && foo !is String && throw IllegalArgumentException() var k: String? = foo } fun test19(foo: Any?) { foo is String || foo == null || throw IllegalArgumentException() var k: String? = foo }