Added file to test library used in LibrariesWith[out]SourcesTests.
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
package testData.libraries
|
||||
|
||||
public trait SimpleTrait {
|
||||
}
|
||||
|
||||
public class SimpleClass {
|
||||
}
|
||||
|
||||
public class SimpleTraitImpl : SimpleTrait {
|
||||
}
|
||||
|
||||
public class WithInnerAndObject {
|
||||
class object {
|
||||
fun foo() {
|
||||
}
|
||||
}
|
||||
|
||||
class MyInner {
|
||||
trait MyInnerInner {
|
||||
fun innerInnerMethod()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class WithTraitClassObject {
|
||||
class object : SimpleTrait
|
||||
}
|
||||
|
||||
public abstract class AbstractClass {
|
||||
}
|
||||
|
||||
public enum class Color(val rgb : Int) {
|
||||
RED : Color(0xFF0000)
|
||||
GREEN : Color(0x00FF00)
|
||||
BLUE : Color(0x0000FF)
|
||||
}
|
||||
|
||||
public abstract class ClassWithAbstractAndOpenMembers {
|
||||
public abstract fun abstractFun()
|
||||
public open fun openFun() {
|
||||
}
|
||||
|
||||
public abstract val abstractVal : String
|
||||
public open val openVal : String = ""
|
||||
public open val openValWithGetter : String
|
||||
get() {
|
||||
return "239"
|
||||
}
|
||||
|
||||
public abstract var abstractVar : String
|
||||
public open var openVar : String = ""
|
||||
public open var openVarWithGetter : String
|
||||
get() {
|
||||
return "239"
|
||||
}
|
||||
set(value) {
|
||||
}
|
||||
}
|
||||
|
||||
public fun main(args : Array<String>) {
|
||||
}
|
||||
|
||||
public val globalVal : #(Int, String) = #(239, "239")
|
||||
|
||||
public val globalValWithGetter : Long
|
||||
get() {
|
||||
return System.currentTimeMillis()
|
||||
}
|
||||
|
||||
public val String.exProp : String
|
||||
get() {
|
||||
return this
|
||||
}
|
||||
|
||||
public val Int.exProp : Int
|
||||
get() {
|
||||
return this
|
||||
}
|
||||
|
||||
public val <T> #(T, T).exProp : String
|
||||
get() {
|
||||
return "${this._1} : ${this._2}"
|
||||
}
|
||||
|
||||
public fun func(a : Int, b : String = "55") {
|
||||
}
|
||||
|
||||
public fun func(a : Int, b : Int) {
|
||||
}
|
||||
|
||||
public fun func() {
|
||||
}
|
||||
|
||||
public inline fun <T> T.filter(predicate: (T)-> Boolean) : T? = this
|
||||
Reference in New Issue
Block a user