Files
kotlin-fork/compiler/testData/diagnostics/tests/thisAndSuper/superInExtensionFunctionCall.kt
T
Svetlana Isakova 179c9ef2d6 Refactoring. Moved error checks (for abstract, super)
to CandidateResolver

 Added error SUPER_CANT_BE_EXTENSION_RECEIVER (it was SUPER_IS_NOT_AN_EXPRESSION)
2014-12-27 00:55:22 +03:00

6 lines
165 B
Kotlin
Vendored

// No supertype at all
class A1 {
fun test() {
<!SUPER_CANT_BE_EXTENSION_RECEIVER!>super<!>.identityEquals(null) // Call to an extension function
}
}