More correct handling of compile time constant types #KT-13421 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-08-16 15:00:15 +03:00
parent 354d047533
commit ac3dfd93bd
6 changed files with 64 additions and 14 deletions
@@ -0,0 +1,8 @@
fun bar() {
false and false
}
// See exception in KT-13421
fun foo() {
42 and <!CONSTANT_EXPECTED_TYPE_MISMATCH!>false<!>
}