Inline recursion diagnostic

This commit is contained in:
Mikhael Bogdanov
2013-12-02 12:29:26 +04:00
parent 9a9527906b
commit 0b2c3efc40
8 changed files with 44 additions and 3 deletions
@@ -1,4 +1,4 @@
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NOTHING_TO_INLINE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NOTHING_TO_INLINE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -RECURSION_IN_INLINE
inline fun <T, V> Function1<T, V>.not() : Boolean {
return !this
}