Files
kotlin-fork/idea/testData/copyPaste/imports/ReferencedElementAlsoCopied.expected.kt
T
2015-04-09 19:09:08 +03:00

33 lines
374 B
Kotlin

// ERROR: Type mismatch: inferred type is kotlin.Unit but to.A was expected
// ERROR: Function 'ext' must have a body
package to
trait T
class A(i: Int) {}
val c = 0
fun g(a: A) {}
fun A.ext()
object O1 {
fun f() {
}
}
object O2 {
}
class ClassObject {
companion object {
}
}
fun f(a: A, t: T) {
g(A(c).ext())
O1.f()
O2
ClassObject
}