Fixed testdata to have the same package/file structure, otherwise it

will not work with Java 9.
This commit is contained in:
Alexander Podkhalyuzin
2018-10-23 13:48:53 +03:00
parent 35fc629305
commit 812d3d9ce6
7 changed files with 17 additions and 5 deletions
@@ -0,0 +1,4 @@
package mockLib.foo
public fun anotherTopLevelFunction(): String = ""
@@ -0,0 +1,57 @@
package mockLib.foo
public class LibClass {
public fun foo() {
}
companion object {
fun classObjectFun() {
}
public object NestedObject
}
public class Nested {
public val valInNested: Int = 1
public fun funInNested() {
}
}
public val nested: Nested = Nested()
}
public interface LibTrait {
public fun foo() {
}
}
public enum class LibEnum {
RED,
GREEN,
BLUE
}
public object LibObject
public fun topLevelFunction(): String = ""
public fun String.topLevelExtFunction(): String = ""
public var topLevelVar: String = ""
class F() {
companion object {
class F {
companion object {
object F {
}
}
}
}
}
interface MyInterface {
fun foo() = 1
}
annotation class Anno(val c: Int = 3, val d: String)