Fix false negative in not reduceable binary expression #KT-26179 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-08-22 18:07:49 +09:00
committed by Mikhail Glukhikh
parent 8f80851b9a
commit 1a31ce769c
6 changed files with 34 additions and 5 deletions
@@ -0,0 +1,4 @@
fun test() {
foo(<caret>false || !true) ?: return
}
fun foo(v: Boolean): Int = 1
@@ -0,0 +1,4 @@
fun test() {
foo(false) ?: return
}
fun foo(v: Boolean): Int = 1
@@ -0,0 +1,4 @@
fun test() {
foo(false || !true) + foo(<caret>false || !true)
}
fun foo(v: Boolean): Int = 1
@@ -0,0 +1,4 @@
fun test() {
foo(false || !true) + foo(false)
}
fun foo(v: Boolean): Int = 1