FIR: Support coercion-to-unit semantics for callable references

This commit is contained in:
Denis Zharkov
2020-05-15 16:21:31 +03:00
parent 61def4cdc5
commit e1e149a062
13 changed files with 64 additions and 27 deletions
@@ -1,5 +1,4 @@
// !LANGUAGE: +NewInference
// IGNORE_BACKEND_FIR: JVM_IR
fun foo(s: String): Boolean {
if (s != "kotlin") throw AssertionError(s)