Introduce Property: Forbid extension properties with initializers and lazy

ones
This commit is contained in:
Alexey Sedunov
2015-05-12 13:21:15 +03:00
parent b69b66feab
commit 02006126f5
6 changed files with 26 additions and 0 deletions
@@ -0,0 +1,5 @@
// EXTRACTION_TARGET: property with initializer
// SIBLING:
class A(val a: Int){
fun foo() = <selection>a + 1</selection>
}
@@ -0,0 +1 @@
Can't generate property with initializer: a + 1
@@ -0,0 +1,5 @@
// EXTRACTION_TARGET: lazy property
// SIBLING:
class A(val a: Int){
fun foo() = <selection>a + 1</selection>
}
@@ -0,0 +1 @@
Can't generate lazy property: a + 1