Move test files to test data root
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// FILE: a.kt
|
||||
package test
|
||||
|
||||
class A {}
|
||||
|
||||
// FILE: b.kt
|
||||
package test.p; class C {fun f() {}}
|
||||
|
||||
// FILE: c.kt
|
||||
package test.p; open class G<T> {open fun f(): T {<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!> fun a() {}}
|
||||
|
||||
// FILE: d.kt
|
||||
package test.p; class G2<E> : <!SUPERTYPE_NOT_INITIALIZED!>G<E><!> { fun g() : E {<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!> override fun f() : E {<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!>}
|
||||
|
||||
// FILE: e.kt
|
||||
package test.p; fun foo() {}
|
||||
|
||||
// FILE: f.kt
|
||||
package test.p; fun foo(<!UNUSED_PARAMETER!>a<!>: C) {}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package
|
||||
|
||||
package test {
|
||||
|
||||
internal final class A {
|
||||
public constructor A()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
package test.p {
|
||||
internal fun foo(): kotlin.Unit
|
||||
internal fun foo(/*0*/ a: test.p.C): kotlin.Unit
|
||||
|
||||
internal final class C {
|
||||
public constructor C()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
internal final fun f(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
internal open class G</*0*/ T> {
|
||||
public constructor G</*0*/ T>()
|
||||
internal final fun a(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
internal open fun f(): T
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
internal final class G2</*0*/ E> : test.p.G<E> {
|
||||
public constructor G2</*0*/ E>()
|
||||
internal final override /*1*/ /*fake_override*/ fun a(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
internal open override /*1*/ fun f(): E
|
||||
internal final fun g(): E
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// FILE: propertyClassFileDependencyRecursion.kt
|
||||
package test
|
||||
|
||||
import other.prop
|
||||
|
||||
// Note: "prop" is expected to be unresolved and replaced to Any
|
||||
class PropType: <!UNRESOLVED_REFERENCE!>prop<!>
|
||||
|
||||
// Note: this time "prop" should be resolved and type should be inferred for "checkTypeProp"
|
||||
val checkTypeProp = prop
|
||||
|
||||
// FILE: propertyClassFileDependencyRecursionOther.kt
|
||||
package other
|
||||
|
||||
import test.PropType
|
||||
|
||||
val prop: PropType? = null
|
||||
@@ -0,0 +1,16 @@
|
||||
package
|
||||
|
||||
package other {
|
||||
internal val prop: test.PropType? = null
|
||||
}
|
||||
|
||||
package test {
|
||||
internal val checkTypeProp: test.PropType? = null
|
||||
|
||||
internal final class PropType {
|
||||
public constructor PropType()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// FILE: SameClassNameResolveTest.kt
|
||||
package test
|
||||
|
||||
open class Base
|
||||
class SubBase: Base()
|
||||
|
||||
// FILE: SameClassNameResolveRoot.kt
|
||||
|
||||
open class Base
|
||||
class SubBase: Base()
|
||||
@@ -0,0 +1,32 @@
|
||||
package
|
||||
|
||||
internal open class Base {
|
||||
public constructor Base()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
internal final class SubBase : Base {
|
||||
public constructor SubBase()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
package test {
|
||||
|
||||
internal open class Base {
|
||||
public constructor Base()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
internal final class SubBase : test.Base {
|
||||
public constructor SubBase()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user