MG
Size: a a a
MG
MG
operator fun <T> plus(vector: Vector<T>): Vector<Any> { aswell)MG
MG
Pair<Float, Double> or Pair<Double, Float> to a Pair<Double, Double> i would expect the output to be of type Pair<Double, Double> instead of Pair<Any, Any>E🎸
AM
class MyClass(val field: FieldType): FieldType by fieldF
interface DataProvider<T,V> {
fun getData(file: T): T
fun writeData(file: T, content: V){}
}Н
AM
interface DataProvider<T> {
fun getData(file: T): T
}
interface WriteableDataProvider<T,V>: DataProvider<T> {
fun writeData(file: T, content: V)
}F
interface DataProvider<T> {
fun getData(file: T): T
}
interface WriteableDataProvider<T,V>: DataProvider<T> {
fun writeData(file: T, content: V)
}AM
AM
interface Collection<T> {
val size: Int
fun get(pos: Int): T
fun getAll(): List<T> = List(size) { get(it) }
}
иinterface Listener {
fun callback(arg1: Int, arg2: Float) {
callback(arg2)
}
fun callback(arg2: Float) {}
}
(это может быть полезно, к примеру, для сохранения бинарной совместимости с пролыми версиями, где было меньше параметров)F
AM
F
AN
AM
D
D
AN