Added file to test library used in LibrariesWith[out]SourcesTests.

This commit is contained in:
Evgeny Gerashchenko
2012-04-05 19:04:55 +04:00
parent 9918e4a723
commit 793fdd4f55
10 changed files with 13 additions and 9 deletions
@@ -19,6 +19,8 @@ package testData.libraries
[final fun func(val a : jet.Int, val b : jet.String) : Unit { /* compiled code */ }]
[final fun func(val str : jet.String) : Unit { /* compiled code */ }]
[final fun main(val args : jet.Array<jet.String>) : Unit { /* compiled code */ }]
[final fun <T : jet.Any?>T.filter(val predicate : (T) -> jet.Boolean) : T? { /* compiled code */ }]
+4
View File
@@ -0,0 +1,4 @@
package testData.libraries
public fun func(str : String) {
}
@@ -1,7 +1,5 @@
package testData.libraries
import java.util.*
public trait SimpleTrait {
}
@@ -4,7 +4,7 @@ fun foo() {
WithInnerAndObject.foo()
}
// library.kt
// main.kt
//public class <1>WithInnerAndObject {
// class object {
// fun <2>foo() {
+1 -1
View File
@@ -3,5 +3,5 @@ import testData.libraries.*
val color: Color? = Color.RED
val rgb = color?.rgb
// library.kt
// main.kt
//public enum class <1><2>Color(val <3>rgb : Int) {
@@ -2,6 +2,6 @@ import testData.libraries.*
val v = 5.filter { it % 2 == 1 }
// library.kt
// main.kt
//public inline fun <T> T.<1>filter(predicate: (T)-> Boolean) : T? = this
@@ -5,7 +5,7 @@ fun foo() {
println(#(1, 2).exProp)
}
// library.kt
// main.kt
//public val String.<1>exProp : String
//get() {
// return this
@@ -7,7 +7,7 @@ fun foo() {
func()
}
// library.kt
// main.kt
//public fun <1><2>func(a : Int, b : String = "55") {
//}
//
@@ -5,7 +5,7 @@ fun foo() {
println(globalValWithGetter)
}
// library.kt
// main.kt
//public val <1>globalVal : #(Int, String) = #(239, "239")
//
//public val <2>globalValWithGetter : Long
+1 -1
View File
@@ -5,7 +5,7 @@ fun foo(a : ClassWithAbstractAndOpenMembers) {
println(a.abstractVar)
}
// library.kt
// main.kt
//public abstract class <1>ClassWithAbstractAndOpenMembers {
// public abstract fun abstractFun()
// public open fun openFun() {