Create from usage (function/property): Suggest separate actions for extensions and non-extension declarations

#KT-6023 Fixed
This commit is contained in:
Alexey Sedunov
2015-02-16 14:04:09 +03:00
parent 41a4dd4128
commit 97b0f50d35
55 changed files with 141 additions and 113 deletions
@@ -1,4 +1,4 @@
// "Create function 'foo'" "true"
// "Create extension function 'foo'" "true"
fun test() {
val a: Int = Unit.foo(2)
@@ -1,4 +1,4 @@
// "Create function 'foo'" "true"
// "Create extension function 'foo'" "true"
class A<T>(val n: T)
@@ -1,4 +1,4 @@
// "Create function 'foo'" "true"
// "Create extension function 'foo'" "true"
fun test() {
val a: Int = Unit.<caret>foo(2)
@@ -1,4 +1,4 @@
// "Create function 'foo'" "true"
// "Create extension function 'foo'" "true"
class A<T>(val n: T)
@@ -1,4 +1,4 @@
// "Create function 'foo'" "true"
// "Create extension function 'foo'" "true"
// ERROR: Unresolved reference: foo
fun test(): Int {
@@ -1,4 +1,4 @@
// "Create function 'foo'" "true"
// "Create extension function 'foo'" "true"
// ERROR: Unresolved reference: foo
fun test(): Int {
@@ -1,4 +1,4 @@
// "Create function 'foo'" "true"
// "Create extension function 'foo'" "true"
class A<T>(val items: List<T>) {
fun test(): Int {
@@ -1,4 +1,4 @@
// "Create function 'foo'" "true"
// "Create extension function 'foo'" "true"
class A<T>(val items: List<T>) {
fun test(): Int {
@@ -1,4 +1,4 @@
// "Create function 'foo'" "true"
// "Create extension function 'foo'" "true"
class A<T>(val items: List<T>) {
fun test(): Int {
@@ -1,4 +1,4 @@
// "Create function 'foo'" "true"
// "Create extension function 'foo'" "true"
class A<T>(val items: List<T>) {
fun test(): Int {
@@ -1,4 +1,4 @@
// "Create function 'foo'" "true"
// "Create extension function 'foo'" "true"
class A<T>(val items: List<T>) {
fun test(): Int {
@@ -1,4 +1,4 @@
// "Create function 'foo'" "true"
// "Create extension function 'foo'" "true"
class A<T>(val items: List<T>) {
fun test(): Int {