Refine deprecation diagnostics for mod depending on api version

#KT-25217 Fixed
 #KT-26654 Open
This commit is contained in:
Mikhail Zarechenskiy
2018-09-07 14:59:02 +03:00
parent 7595cb23ab
commit dee3617dd8
7 changed files with 71 additions and 9 deletions
@@ -0,0 +1,5 @@
// !API_VERSION: 1.1
fun test() {
1.<!DEPRECATION!>mod<!>(3)
}
@@ -0,0 +1,3 @@
package
public fun test(): kotlin.Unit
@@ -0,0 +1,5 @@
// !API_VERSION: 1.2
fun test() {
1.<!DEPRECATION!>mod<!>(3)
}
@@ -0,0 +1,3 @@
package
public fun test(): kotlin.Unit