Prohibit inline modifier on property, getter or setter

This commit is contained in:
Alexey Tsvetkov
2015-10-17 00:43:37 +03:00
parent 7a1b6ed13f
commit c459e78a7d
5 changed files with 10 additions and 6 deletions
@@ -2,10 +2,10 @@
import java.io.*
inline val InputStream.buffered : BufferedInputStream
<!WRONG_MODIFIER_TARGET!>inline<!> val InputStream.buffered : BufferedInputStream
get() = if(this is BufferedInputStream) <!DEBUG_INFO_SMARTCAST!>this<!> else BufferedInputStream(this)
inline val Reader.buffered : BufferedReader
<!WRONG_MODIFIER_TARGET!>inline<!> val Reader.buffered : BufferedReader
get() = if(this is BufferedReader) <!DEBUG_INFO_SMARTCAST!>this<!> else BufferedReader(this)