Clean the code

This commit is contained in:
Arsen Nagdalian
2020-07-15 20:23:50 +03:00
parent f781a9993b
commit 1b57889773
6 changed files with 3 additions and 14 deletions
+1 -1
View File
@@ -10,4 +10,4 @@ fun baz(num: Int?, element: MyElement, block: () -> Unit): Int contract [
return 1;
}
return 0
}
}
@@ -9,4 +9,4 @@ fun someFunctionWithTypeConstraints<T, E>(arg: E?, block: () -> T): String
block()
arg ?: throw NullArgumentException()
return "some string"
}
}
+1 -1
View File
@@ -1,3 +1,3 @@
fun foo(s: String?) contract [returns() implies (s != null)] {
s ?: throw NullArgumentException()
}
}