Added overloaded and extension functions to LibrariesTest.

This commit is contained in:
Evgeny Gerashchenko
2012-03-23 19:53:38 +04:00
parent 79a8c4ae9b
commit 46e748fce5
2 changed files with 36 additions and 0 deletions
@@ -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() {
}