Kapt3: Call super class constructor with some default parameters.

Allow interface, annotation, enum modifiers on class.
This commit is contained in:
Yan Zhulanow
2016-10-26 01:50:53 +03:00
committed by Yan Zhulanow
parent edaadb0d48
commit 10cfde4ab9
6 changed files with 114 additions and 8 deletions
+13
View File
@@ -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
}