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() {
|
||||
}
|
||||
@@ -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 */ }]
|
||||
|
||||
Reference in New Issue
Block a user