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() {
}
+12
View File
@@ -3,8 +3,20 @@
package testData.libraries
[final val <T : jet.Any?>#(T, T).exProp : jet.String] /* compiled code */
[final val jet.Int.exProp : jet.Int] /* compiled code */
[final val jet.String.exProp : jet.String] /* compiled code */
[final val globalVal : #(jet.Int, jet.String)] /* compiled code */
[final val globalValWithGetter : jet.Long] /* compiled code */
[final fun func() : Unit { /* compiled code */ }]
[final fun func(val a : jet.Int, val b : jet.Int) : Unit { /* compiled code */ }]
[final fun func(val a : jet.Int, val b : jet.String) : Unit { /* compiled code */ }]
[final fun main(val args : jet.Array<jet.String>) : Unit { /* compiled code */ }]