Inline function: add extra tests taken from intellij-community
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
class Foo {
|
||||
|
||||
fun method(b: Boolean,
|
||||
elementComputable: Computable<String>,
|
||||
processingContext: Any): WeighingComparable<String, ProximityLocation> {
|
||||
return WeighingComparable(elementComputable, ProximityLocation(), Array<Weigher<*, *>>(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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user