Files
kotlin-fork/idea/testData/refactoring/inline/function/fromIntellij/Substitution.kt.after
T
2017-05-31 12:46:59 +03:00

35 lines
855 B
Plaintext
Vendored

class Foo {
fun method(b: Boolean,
elementComputable: Computable<String>,
processingContext: Any): WeighingComparable<String, ProximityLocation> {
return WeighingComparable(elementComputable, ProximityLocation(), Array(0) { null!! })
}
companion object {
val WEIGHER_KEY: Key<ProximityWeigher>? = null
}
}
abstract class ProximityWeigher : Weigher<String, ProximityLocation>()
class ProximityLocation
class Key<P>
open class Weigher<A, B>
class Computable<O>
class WeighingComparable<T, Loc>(element: Computable<T>, location: Loc, weighers: Array<Weigher<*, *>>) : Comparable<WeighingComparable<T, Loc>> {
override fun compareTo(other: WeighingComparable<T, Loc>): Int {
return 0
}
private fun getWeight(index: Int): Comparable<*>? {
return null
}
}