mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Fix "add member" quick fix when invoked from java on common class
#KT-24115 Fixed
This commit is contained in:
5
idea/testData/multiModuleQuickFix/addFunctionToCommonClassFromJavaUsage/common/common.kt
vendored
Normal file
5
idea/testData/multiModuleQuickFix/addFunctionToCommonClassFromJavaUsage/common/common.kt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
class Bar {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package foo
|
||||
|
||||
class Bar {
|
||||
fun someFun() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
7
idea/testData/multiModuleQuickFix/addFunctionToCommonClassFromJavaUsage/jvm/Use.java
vendored
Normal file
7
idea/testData/multiModuleQuickFix/addFunctionToCommonClassFromJavaUsage/jvm/Use.java
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
// "Add method 'someFun' to 'Bar'" "true"
|
||||
|
||||
public class Use {
|
||||
public static void use(foo.Bar bar) {
|
||||
bar.s<caret>omeFun();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user