test data fixed

can't implicitly convert to Unit any more in 'if'
as 'if' is resolved as special function call 'fun IF<T>(T, T)'
This commit is contained in:
Svetlana Isakova
2013-09-02 19:20:32 +04:00
parent 01826af806
commit 335e0d7d1b
@@ -106,7 +106,7 @@ fun testImplicitCoercion() {
val <!UNUSED_VARIABLE!>h<!> = <!IMPLICIT_CAST_TO_UNIT_OR_ANY!>if (false) 4 else {}<!>
bar(if (true) {
4
<!TYPE_MISMATCH!>4<!>
}
else {
z = <!UNUSED_VALUE!>342<!>