Files
kotlin-fork/idea/testData/multiFileHighlighting/dependencies/util.kt
T
Pavel V. Talanov 5ad8405893 Tweak test data so MultiFileHighlighting does not fail
Actually this test has to be reviewed
Current failures are caused by change in platform API
2018-08-16 14:03:01 +02:00

56 lines
737 B
Kotlin
Vendored

// ALLOW_AST_ACCESS
package util
interface T {
fun f()
}
interface T2 {
fun g() {
}
}
@Suppress"UNRESOLVED_REFERENCE")
class Invalid: I
class A(val i: Int)
@Suppress"FINAL_SUPERTYPE")
class B: A(1) {
}
open class C(val s: String, i: Int): A(i), T {
override fun f() {}
}
fun topLevelFun(u: A): A {
return A(u.i)
}
val topLevelVal: A = C("", 0)
var topLevelVar: A = B()
object topLevelObject: T {
override fun f() {
}
fun g() {
}
}
fun funWithUnspecifiedType() = 3
fun funWithVararg(vararg i: Int): IntArray {
return i
}
fun <T, G> funWithWhere(a: G, b: T) where T: Collection<G> {
}
annotation class TempAnnotation
fun funWithAnnotatedParameter(@TempAnnotation param: String) {
}