Do not report deprecation on readBytes with API version < 1.3

#KT-26667 Fixed
This commit is contained in:
Alexander Udalov
2018-09-12 16:57:56 +03:00
parent 044419eda5
commit 863c0051ce
7 changed files with 83 additions and 0 deletions
@@ -0,0 +1,7 @@
import java.io.InputStream
fun InputStream.test() {
readBytes()
<!DEPRECATION!>readBytes<!>(1)
}
@@ -0,0 +1,3 @@
package
public fun java.io.InputStream.test(): kotlin.Unit
@@ -0,0 +1,9 @@
// !API_VERSION: 1.2
import java.io.InputStream
fun InputStream.test() {
readBytes()
readBytes(1)
}
@@ -0,0 +1,3 @@
package
public fun java.io.InputStream.test(): kotlin.Unit