Introduce Property: Forbid lazy properties/properties with initializers in traits
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// EXTRACTION_TARGET: property with getter
|
||||
trait T {
|
||||
private val i: Int
|
||||
get() {
|
||||
return 1
|
||||
}
|
||||
|
||||
fun foo(): Int {
|
||||
return i
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user