Enable control flow checks for functions without body

Except checks for tail recursive calls

 #KT-7796 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-04-18 11:37:52 +03:00
parent a0d7b703f4
commit 7af10769c9
5 changed files with 36 additions and 3 deletions
@@ -0,0 +1,9 @@
interface Inter {
fun foo(x: Int = <!UNINITIALIZED_PARAMETER!>y<!>, y: Int = x)
}
abstract class Abst {
abstract fun foo(x: Int = <!UNINITIALIZED_PARAMETER!>y<!>, y: Int = x)
}
<!NON_MEMBER_FUNCTION_NO_BODY!>fun extraDiagnostics(<!UNUSED_PARAMETER!>x<!>: Int = <!UNINITIALIZED_PARAMETER!>y<!>, <!UNUSED_PARAMETER!>y<!>: Int)<!>