Kapt3: Call super class constructor with some default parameters.
Allow interface, annotation, enum modifiers on class.
This commit is contained in:
committed by
Yan Zhulanow
parent
edaadb0d48
commit
10cfde4ab9
@@ -0,0 +1,13 @@
|
||||
interface Context
|
||||
|
||||
enum class Result {
|
||||
SUCCESS, ERROR
|
||||
}
|
||||
|
||||
abstract class BaseClass(context: Context, num: Int, bool: Boolean) {
|
||||
abstract fun doJob(): Result
|
||||
}
|
||||
|
||||
class Inheritor(context: Context) : BaseClass(context, 5, true) {
|
||||
override fun doJob() = Result.SUCCESS
|
||||
}
|
||||
Reference in New Issue
Block a user