Add a test for referencing classes using fqnames.

This commit is contained in:
Pavel V. Talanov
2012-03-19 16:50:50 +04:00
parent eeb3bc9a8e
commit 807836322c
4 changed files with 15 additions and 3 deletions
@@ -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()))
@@ -0,0 +1,5 @@
package a.foo
import b.foo.*
fun box() = (A().tadada(A()))
@@ -0,0 +1,5 @@
package b.foo
class A() {
fun tadada(a : A) = true
}