Add a test for referencing classes using fqnames.
This commit is contained in:
@@ -55,5 +55,9 @@ public class MultiNamespaceTest extends MultipleFilesTranslationTest {
|
||||
public void testCreateClassFromOtherNamespace() throws Exception {
|
||||
runMultiFileTest("createClassFromOtherNamespace", "a.foo", "box", true);
|
||||
}
|
||||
|
||||
public void testCreateClassFromOtherNamespaceUsingImport() throws Exception {
|
||||
runMultiFileTest("createClassFromOtherNamespaceUsingImport", "a.foo", "box", true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
package a.foo
|
||||
|
||||
import b.foo.*
|
||||
|
||||
fun box() = (A().tadada(A()))
|
||||
fun box() = (b.foo.A().tadada(b.foo.A()))
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package a.foo
|
||||
|
||||
import b.foo.*
|
||||
|
||||
fun box() = (A().tadada(A()))
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package b.foo
|
||||
|
||||
class A() {
|
||||
fun tadada(a : A) = true
|
||||
}
|
||||
Reference in New Issue
Block a user