Added test for navigating to library sources when same function FQ name is defined in separate source files.
#KT-1681 in progress
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import testData.libraries.*
|
||||
|
||||
fun foo() {
|
||||
func("5")
|
||||
func(5)
|
||||
}
|
||||
|
||||
// extra.kt
|
||||
//public fun <1>func(str : String) {
|
||||
// main.kt
|
||||
//public fun <2>func(a : Int, b : String = "55") {
|
||||
@@ -70,6 +70,10 @@ public class LibrariesWithSourcesTest extends AbstractLibrariesTest {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testSameNameInDifferentSources() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
userFile = LocalFileSystem.getInstance().findFileByPath(TEST_DATA_PATH + "/usercode/" + getTestName(false) + ".kt");
|
||||
assertNotNull(userFile);
|
||||
|
||||
Reference in New Issue
Block a user