Member 'invoke' of function class should be abstract

This commit is contained in:
Svetlana Isakova
2012-05-03 16:15:08 +04:00
parent c5b7b5ad5a
commit bdb7de142a
4 changed files with 17 additions and 6 deletions
@@ -0,0 +1,9 @@
package extendFunctionClass
class <!ABSTRACT_MEMBER_NOT_IMPLEMENTED!>A<!> : (Int) -> Int {
}
class B : Function1<Int, Int> {
override fun invoke(p0 : Int) = p0
}