Annotate all new API with SinceKotlin in kotlin-stdlib and kotlin-test

This commit is contained in:
Ilya Gorbunov
2016-10-12 04:24:37 +03:00
parent a8f381cabc
commit a57321dea8
13 changed files with 15 additions and 0 deletions
@@ -88,6 +88,7 @@ fun <@OnlyInputTypes T> expect(expected: T, message: String?, block: () -> T) {
fun assertFails(block: () -> Unit): Throwable = assertFails(null, block)
/** Asserts that given function [block] fails by throwing an exception. */
@SinceKotlin("1.1")
fun assertFails(message: String?, block: () -> Unit): Throwable {
try {
block()