Remove synthetic flag from internal members

This commit is contained in:
Michael Bogdanov
2015-10-09 18:40:51 +03:00
parent 4f63d47f82
commit ee6dbac381
12 changed files with 32 additions and 13 deletions
@@ -0,0 +1,12 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetNamedFunction
// OPTIONS: usages
package server
public open class Server() {
open internal fun <caret>processRequest() = "foo"
}
public class ServerEx(): Server() {
override fun processRequest() = "foofoo"
}
@@ -0,0 +1,8 @@
import server.*;
class Client {
public fun foo() {
Server().processRequest()
ServerEx().processRequest()
}
}
@@ -0,0 +1,2 @@
Function call (5: 18) Server().processRequest()
Function call (6: 20) ServerEx().processRequest()
@@ -552,6 +552,12 @@ public class JetFindUsagesTestGenerated extends AbstractJetFindUsagesTest {
doTest(fileName);
}
@TestMetadata("kotlinInternalMethodUsages.0.kt")
public void testKotlinInternalMethodUsages() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/findUsages/kotlin/findFunctionUsages/kotlinInternalMethodUsages.0.kt");
doTest(fileName);
}
@TestMetadata("kotlinLocalMethodUsages1.0.kt")
public void testKotlinLocalMethodUsages1() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/findUsages/kotlin/findFunctionUsages/kotlinLocalMethodUsages1.0.kt");