"is" over enum entry is now an error + new tests + test fixes

This commit is contained in:
Mikhail Glukhikh
2015-06-29 18:11:55 +03:00
parent e1d3b296e9
commit 848c2afdb4
11 changed files with 118 additions and 12 deletions
@@ -29,13 +29,13 @@ class TestLocal(val name: String, val executionType: ExecutionType) : Callable<S
override fun call(): String {
startSignal.await()
return when (executionType) {
is ExecutionType.LOCAL -> local()
is ExecutionType.NON_LOCAL_SIMPLE -> nonLocalSimple()
is ExecutionType.NON_LOCAL_EXCEPTION -> nonLocalWithException()
is ExecutionType.NON_LOCAL_FINALLY -> nonLocalWithFinally()
is ExecutionType.NON_LOCAL_EXCEPTION_AND_FINALLY -> nonLocalWithExceptionAndFinally()
is ExecutionType.NON_LOCAL_EXCEPTION_AND_FINALLY_WITH_RETURN -> nonLocalWithExceptionAndFinallyWithReturn()
is ExecutionType.NON_LOCAL_NESTED -> nonLocalNested()
ExecutionType.LOCAL -> local()
ExecutionType.NON_LOCAL_SIMPLE -> nonLocalSimple()
ExecutionType.NON_LOCAL_EXCEPTION -> nonLocalWithException()
ExecutionType.NON_LOCAL_FINALLY -> nonLocalWithFinally()
ExecutionType.NON_LOCAL_EXCEPTION_AND_FINALLY -> nonLocalWithExceptionAndFinally()
ExecutionType.NON_LOCAL_EXCEPTION_AND_FINALLY_WITH_RETURN -> nonLocalWithExceptionAndFinallyWithReturn()
ExecutionType.NON_LOCAL_NESTED -> nonLocalNested()
else -> "fail"
}
}