Split on big fat test case in LibrariesWithSourcesTest into several smaller ones.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import testData.libraries.*
|
||||
|
||||
fun foo() {
|
||||
WithInnerAndObject.foo()
|
||||
}
|
||||
|
||||
//public class <1>WithInnerAndObject {
|
||||
// class object {
|
||||
// fun <2>foo() {
|
||||
@@ -0,0 +1,6 @@
|
||||
import testData.libraries.*
|
||||
|
||||
val color: Color? = Color.RED
|
||||
val rgb = color?.rgb
|
||||
|
||||
//public enum class <1><2>Color(val <3>rgb : Int) {
|
||||
@@ -0,0 +1,6 @@
|
||||
import testData.libraries.*
|
||||
|
||||
val v = 5.filter { it % 2 == 1 }
|
||||
|
||||
//public inline fun <T> T.<1>filter(predicate: (T)-> Boolean) : T? = this
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import testData.libraries.*
|
||||
|
||||
fun foo() {
|
||||
println("".exProp)
|
||||
println(#(1, 2).exProp)
|
||||
}
|
||||
|
||||
//public val String.<1>exProp : String
|
||||
//get() {
|
||||
// return this
|
||||
//}
|
||||
//
|
||||
//public val Int.exProp : Int
|
||||
//get() {
|
||||
// return this
|
||||
//}
|
||||
//
|
||||
//public val <T> #(T, T).<2>exProp : String
|
||||
@@ -0,0 +1,16 @@
|
||||
import testData.libraries.*
|
||||
|
||||
fun foo() {
|
||||
func(5)
|
||||
func(5, "5")
|
||||
func(5, 5)
|
||||
func()
|
||||
}
|
||||
|
||||
//public fun <1><2>func(a : Int, b : String = "55") {
|
||||
//}
|
||||
//
|
||||
//public fun <3>func(a : Int, b : Int) {
|
||||
//}
|
||||
//
|
||||
//public fun <4>func() {
|
||||
@@ -0,0 +1,10 @@
|
||||
import testData.libraries.*
|
||||
|
||||
fun foo() {
|
||||
println(testData.libraries.globalVal)
|
||||
println(globalValWithGetter)
|
||||
}
|
||||
|
||||
//public val <1>globalVal : #(Int, String) = #(239, "239")
|
||||
//
|
||||
//public val <2>globalValWithGetter : Long
|
||||
@@ -0,0 +1,21 @@
|
||||
import testData.libraries.*
|
||||
|
||||
fun foo(a : ClassWithAbstractAndOpenMembers) {
|
||||
a.abstractVar = "v"
|
||||
println(a.abstractVar)
|
||||
}
|
||||
|
||||
//public abstract class <1>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 <2><3>abstractVar : String
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
package testData.libraries
|
||||
|
||||
import java.util.*
|
||||
|
||||
public trait SimpleTrait {
|
||||
}
|
||||
|
||||
public class SimpleClass {
|
||||
}
|
||||
|
||||
public class SimpleTraitImpl : SimpleTrait {
|
||||
}
|
||||
|
||||
public class <15>WithInnerAndObject {
|
||||
class object {
|
||||
fun <16>foo() {
|
||||
}
|
||||
}
|
||||
|
||||
class MyInner {
|
||||
trait MyInnerInner {
|
||||
fun innerInnerMethod()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class WithTraitClassObject {
|
||||
class object : SimpleTrait
|
||||
}
|
||||
|
||||
public abstract class AbstractClass {
|
||||
}
|
||||
|
||||
public enum class <4><5>Color(val <6>rgb : Int) {
|
||||
RED : Color(0xFF0000)
|
||||
GREEN : Color(0x00FF00)
|
||||
BLUE : Color(0x0000FF)
|
||||
}
|
||||
|
||||
public abstract class <1>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 <2><3>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 <7>globalVal : #(Int, String) = #(239, "239")
|
||||
|
||||
public val <8>globalValWithGetter : Long
|
||||
get() {
|
||||
return System.currentTimeMillis()
|
||||
}
|
||||
|
||||
public val String.<9>exProp : String
|
||||
get() {
|
||||
return this
|
||||
}
|
||||
|
||||
public val Int.exProp : Int
|
||||
get() {
|
||||
return this
|
||||
}
|
||||
|
||||
public val <T> #(T, T).<10>exProp : String
|
||||
get() {
|
||||
return "${this._1} : ${this._2}"
|
||||
}
|
||||
|
||||
public fun <11><12>func(a : Int, b : String = "55") {
|
||||
}
|
||||
|
||||
public fun <13>func(a : Int, b : Int) {
|
||||
}
|
||||
|
||||
public fun <14>func() {
|
||||
}
|
||||
|
||||
public inline fun <T> T.<17>filter(predicate: (T)-> Boolean) : T? = this
|
||||
@@ -1,25 +0,0 @@
|
||||
package userpackage
|
||||
|
||||
import testData.libraries.*
|
||||
|
||||
fun foo(a : ClassWithAbstractAndOpenMembers) {
|
||||
a.abstractVar = "v"
|
||||
println(a.abstractVar)
|
||||
}
|
||||
|
||||
fun main(args : Array<String>) : Unit {
|
||||
val color: Color? = Color.RED
|
||||
color?.rgb
|
||||
|
||||
println(testData.libraries.globalVal)
|
||||
println(testData.libraries.globalValWithGetter)
|
||||
println("".exProp)
|
||||
println(#(1, 2).exProp)
|
||||
func(5)
|
||||
func(5, "5")
|
||||
func(5, 5)
|
||||
func()
|
||||
|
||||
WithInnerAndObject.foo()
|
||||
5.filter { it % 2 == 1 }
|
||||
}
|
||||
Reference in New Issue
Block a user