Narrow down the range for compatibility warning to callee expression

This commit is contained in:
Mikhail Zarechenskiy
2020-06-02 12:30:52 +03:00
parent 4bd622c1c5
commit a4af833d55
4 changed files with 7 additions and 5 deletions
@@ -8,7 +8,7 @@ object Test1 {
fun foo(f: suspend () -> Unit) {}
fun test(g: () -> Unit) {
<!COMPATIBILITY_WARNING, DEBUG_INFO_CALL("fqName: Test1.foo; typeCall: function")!>foo(g)<!>
<!DEBUG_INFO_CALL("fqName: Test1.foo; typeCall: function")!><!COMPATIBILITY_WARNING!>foo<!>(g)<!>
}
}
}