Allow to use internal declarations from special modules in IDEA

(e.g. IDEA 16 gradle tests loaded in separate module)

 #KT-10595 Fixed
This commit is contained in:
Zalim Bashorov
2016-02-03 20:40:01 +03:00
parent 5968ce96df
commit 2c1d1e84a6
3 changed files with 53 additions and 10 deletions
@@ -25,6 +25,10 @@ private val ALWAYS_TRUE: (Any?) -> Boolean = { true }
fun <T> alwaysTrue(): (T) -> Boolean = ALWAYS_TRUE
private val ALWAYS_NULL: (Any?) -> Any? = { null }
@Suppress("UNCHECKED_CAST")
fun <T, R: Any> alwaysNull(): (T) -> R? = ALWAYS_NULL as (T) -> R?
val DO_NOTHING: (Any?) -> Unit = { }