Remove ResolveSession.getResolutionScope() and extend usage of ScopeProvider.getResolutionScopeForDeclaration()
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
class Some {
|
||||
TestAnnotation class object {
|
||||
annotation class TestAnnotation
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace test
|
||||
|
||||
internal final class test.Some : jet.Any {
|
||||
public final /*constructor*/ fun <init>(): test.Some
|
||||
[ERROR : Unresolved annotation type]() internal final class object test.Some.<class-object-for-Some> : jet.Any {
|
||||
private final /*constructor*/ fun <init>(): test.Some.<class-object-for-Some>
|
||||
internal final annotation class test.Some.<class-object-for-Some>.TestAnnotation : jet.Annotation {
|
||||
public final /*constructor*/ fun <init>(): test.Some.<class-object-for-Some>.TestAnnotation
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
open class ToResolve<SomeClass>(f : (Int) -> Int)
|
||||
fun testFun(a : Int) = 12
|
||||
|
||||
class TestSome<P> {
|
||||
class object : ToResolve<P>({testFun(it)}) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace test
|
||||
|
||||
internal final class test.TestSome</*0*/ P : jet.Any?> : jet.Any {
|
||||
public final /*constructor*/ fun </*0*/ P : jet.Any?><init>(): test.TestSome<P>
|
||||
internal final class object test.TestSome.<class-object-for-TestSome> : test.ToResolve<[ERROR : P]> {
|
||||
private final /*constructor*/ fun <init>(): test.TestSome.<class-object-for-TestSome>
|
||||
}
|
||||
}
|
||||
internal open class test.ToResolve</*0*/ SomeClass : jet.Any?> : jet.Any {
|
||||
public final /*constructor*/ fun </*0*/ SomeClass : jet.Any?><init>(/*0*/ f: jet.Function1<jet.Int, jet.Int>): test.ToResolve<SomeClass>
|
||||
}
|
||||
internal final fun testFun(/*0*/ a: jet.Int): jet.Int
|
||||
Reference in New Issue
Block a user