Android: Add intention to generate View constructor convention
Fixes #KT-15150
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
f74c0950d2
commit
ca86dbee72
+19
@@ -0,0 +1,19 @@
|
||||
// "Add Android View constructors using '@JvmOverloads'" "true"
|
||||
// ERROR: The type has a constructor, and thus must be initialized here
|
||||
|
||||
package android.view
|
||||
|
||||
import android.util.AttributeSet
|
||||
import android.content.Context
|
||||
|
||||
public open class View {
|
||||
constructor(context: Context)
|
||||
constructor(context: Context, attrs: AttributeSet?)
|
||||
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int)
|
||||
}
|
||||
|
||||
public open class TextView : View {
|
||||
constructor(context: Context) super(context)
|
||||
constructor(context: Context, attrs: AttributeSet?) super(context, attrs)
|
||||
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) super(context, attrs, defStyleAttr)
|
||||
}
|
||||
Reference in New Issue
Block a user