Implicit Nothing return type is now deprecated

This commit is contained in:
Mikhail Glukhikh
2015-10-09 17:42:36 +03:00
parent 65f0f312ff
commit 64543e3f52
27 changed files with 47 additions and 21 deletions
@@ -15,7 +15,7 @@ fun test3() {
<!UNREACHABLE_CODE!>bar(<!>11, l@(todo()/*comment*/), <!UNREACHABLE_CODE!>"")<!>
}
fun todo() = throw Exception()
fun todo(): Nothing = throw Exception()
fun bar(<!UNUSED_PARAMETER!>i<!>: Int, <!UNUSED_PARAMETER!>s<!>: String, <!UNUSED_PARAMETER!>a<!>: Any) {}