Imports resolution tests

This commit is contained in:
Nikolay Krasko
2013-02-01 21:11:43 +04:00
parent e69acd9198
commit 54e5fa5256
22 changed files with 795 additions and 118 deletions
@@ -0,0 +1,45 @@
//FILE:firstOrder.kt
//----------------------------------------------------------------------------------
package test
import testing.other.*
import testing.exact.Second
import testing.allUnder.*
// The goal is to activate lazy resolve in order Second, Other
class FirstOrder: `other`Other, FirstInternal
trait FirstInternal: `allUnder`Second
//FILE:secondOrder.kt
//----------------------------------------------------------------------------------
package test
import testing.other.*
import testing.exact.Second
import testing.allUnder.*
// The goal is to activate lazy resolve in order Other, Second
class FirstOrder: FirstInternal, `other`Other
trait FirstInternal: `allUnder`Second
//FILE:secondForAllUnderImport.kt
//----------------------------------------------------------------------------------
package testing.allUnder
trait ~allUnder~Second
//FILE:secondForExactImport.kt
//----------------------------------------------------------------------------------
package testing.exact
trait ~exact~Second
//FILE:someOther.kt
//----------------------------------------------------------------------------------
package testing.other
trait ~other~Other