Do not render declarations from other modules in diagnostic tests
Because PackageViewDescriptor may consist of several package fragments from different modules (see LazyPackageViewDescriptorImpl#fragments), we now filter out fragments from irrelevant modules before rendering them into the .txt
This commit is contained in:
-35
@@ -72,39 +72,4 @@ package
|
||||
public fun test(): kotlin.Unit
|
||||
|
||||
package p {
|
||||
public fun a(/*0*/ a: p.A): kotlin.Unit
|
||||
public fun c(/*0*/ c: p.C<kotlin.Int>): kotlin.Unit
|
||||
public fun d(/*0*/ d: p.D<kotlin.Int>): kotlin.Unit
|
||||
|
||||
public interface A {
|
||||
// -- Module: <m2> --
|
||||
}
|
||||
|
||||
public interface A</*0*/ T> {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
|
||||
public final class B : p.A<kotlin.Int>, p.C, p.D<kotlin.Int> {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
|
||||
public interface C {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
|
||||
public interface C</*0*/ T> {
|
||||
// -- Module: <m2> --
|
||||
}
|
||||
|
||||
public interface D</*0*/ T> {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
|
||||
public interface D</*0*/ T> {
|
||||
// -- Module: <m2> --
|
||||
}
|
||||
|
||||
public final class M1 {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user