Extract Function: Do not allow property extraction if return type is Unit

#KT-6017 Fixed
This commit is contained in:
Alexey Sedunov
2014-10-20 16:30:19 +04:00
parent f5f1aec47b
commit 40da4bd423
4 changed files with 15 additions and 1 deletions
@@ -0,0 +1,5 @@
// EXTRACT_AS_PROPERTY
// SIBLING:
fun foo() {
<selection>1 + 1</selection>
}
@@ -0,0 +1 @@
Can't generate property: 1 + 1