Fix warnings in stdlib samples and test modules

This commit is contained in:
Alexander Udalov
2021-07-25 17:23:55 +02:00
parent 0d1380c232
commit 3bc0eaff59
12 changed files with 26 additions and 11 deletions
+2
View File
@@ -10,6 +10,7 @@ import kotlin.test.*
class TODOTest {
private class PartiallyImplementedClass {
public val prop: String get() = TODO()
@Suppress("UNREACHABLE_CODE", "CAST_NEVER_SUCCEEDS")
fun method1() = TODO() as String
@@ -20,6 +21,7 @@ class TODOTest {
TODO("what if false")
else {
if (value.length < 3)
@Suppress("UNREACHABLE_CODE")
throw TODO("write message")
}