[NI] Fix exception: don't try to compute type depth on null type

#KT-32184 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2019-06-24 14:44:18 +03:00
parent a26cf86af7
commit 60a0cf1fcc
6 changed files with 83 additions and 16 deletions
@@ -0,0 +1,25 @@
class Log
data class CalculatedVariable(
val idString: String,
val presentableName: String,
val units: String,
val function: (Log) -> ((TimeIndex) -> Any?)?,
val converter: (Any) -> Double
) {
constructor(idString: String, presentableName: String, units: String, function: (Log) -> ((TimeIndex) -> Double?)?)
: this(idString, presentableName, units, function, { it as Double })
}
object CalculatedVariables {
val x = CalculatedVariable(
"A",
"B",
"C",
fun(<!UNUSED_ANONYMOUS_PARAMETER!>log<!>: Log): ((TimeIndex) -> Double?)? {
return { 0.0 }
}
)
}
class TimeIndex