Added overloaded and extension functions to LibrariesTest.
This commit is contained in:
@@ -65,4 +65,28 @@ val globalVal : #(Int, String) = #(239, "239")
|
||||
val globalValWithGetter : Long
|
||||
get() {
|
||||
return System.currentTimeMillis()
|
||||
}
|
||||
|
||||
val String.exProp : String
|
||||
get() {
|
||||
return this
|
||||
}
|
||||
|
||||
val Int.exProp : Int
|
||||
get() {
|
||||
return this
|
||||
}
|
||||
|
||||
val <T> #(T, T).exProp : String
|
||||
get() {
|
||||
return "${this._1} : ${this._2}"
|
||||
}
|
||||
|
||||
fun func(a : Int, b : String = "55") {
|
||||
}
|
||||
|
||||
fun func(a : Int, b : Int) {
|
||||
}
|
||||
|
||||
fun func() {
|
||||
}
|
||||
Reference in New Issue
Block a user