Create from usage (function/property): Suggest separate actions for extensions and non-extension declarations
#KT-6023 Fixed
This commit is contained in:
@@ -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
-1
@@ -1,4 +1,4 @@
|
||||
// "Create function 'foo'" "true"
|
||||
// "Create extension function 'foo'" "true"
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
fun test(): Int {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create function 'foo'" "true"
|
||||
// "Create extension function 'foo'" "true"
|
||||
|
||||
class A<T>(val items: List<T>) {
|
||||
fun test(): Int {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create function 'foo'" "true"
|
||||
// "Create extension function 'foo'" "true"
|
||||
|
||||
class A<T>(val items: List<T>) {
|
||||
fun test(): Int {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create function 'foo'" "true"
|
||||
// "Create extension function 'foo'" "true"
|
||||
|
||||
class A<T>(val items: List<T>) {
|
||||
fun test(): Int {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create function 'foo'" "true"
|
||||
// "Create extension function 'foo'" "true"
|
||||
|
||||
class A<T>(val items: List<T>) {
|
||||
fun test(): Int {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create function 'foo'" "true"
|
||||
// "Create extension function 'foo'" "true"
|
||||
|
||||
class A<T>(val items: List<T>) {
|
||||
fun test(): Int {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create function 'foo'" "true"
|
||||
// "Create extension function 'foo'" "true"
|
||||
|
||||
class A<T>(val items: List<T>) {
|
||||
fun test(): Int {
|
||||
|
||||
Reference in New Issue
Block a user