Unreachable code with Nothing-returning functions

This commit is contained in:
Andrey Breslav
2011-04-14 19:23:49 +04:00
parent 4d92f75133
commit cf7991378a
24 changed files with 272 additions and 69 deletions
+2 -2
View File
@@ -127,10 +127,10 @@ fun t8() {
fun blockAndAndMismatch() : Boolean {
<error>(return true) || (return false)</error>
<error>1</error>
<error>true</error>
}
fun tf() {
try {return} finally{return}
try {<error>return</error>} finally{return}
<error>1</error>
}