[FIR] Resolve annotations as calls
This commit is contained in:
committed by
Mikhail Glukhikh
parent
bc1fa8ed7f
commit
721b9b4d8c
+2
-2
@@ -1,7 +1,7 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
<!HIDDEN!>@kotlin.internal.InlineOnly<!>
|
||||
public inline fun <C, R> C.ifEmpty(f: () -> R): R where C : Collection<*>, C : R = if (isEmpty()) f() else this
|
||||
|
||||
public fun <T> listOf(t: T): List<T> = TODO()
|
||||
@@ -13,4 +13,4 @@ fun usage(c: List<String>) {
|
||||
|
||||
val cs = c.ifEmpty { listOf("x") }
|
||||
cs checkType { _<List<String>>() }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user