Use box tests to check if the light analysis mode (without analyzing bodies when possible) produces the same result as the complete analysis. See also the next commit in which light analysis mode is applied. Note that no tests were changed.
This commit is contained in:
committed by
Yan Zhulanow
parent
8bdb54929b
commit
328286ab14
compiler/testData/codegen/light-analysis/closures/captureOuterProperty/captureFunctionInProperty.txt
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
public final class A {
|
||||
private final @org.jetbrains.annotations.NotNull field x: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @org.jetbrains.annotations.NotNull method foo(): T
|
||||
public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String
|
||||
public final @org.jetbrains.annotations.NotNull method getx(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class CaptureFunctionInPropertyKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public interface T {
|
||||
public abstract @org.jetbrains.annotations.NotNull method result(): java.lang.String
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
public final class A {
|
||||
private final @org.jetbrains.annotations.NotNull field x: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @org.jetbrains.annotations.NotNull method foo(): T
|
||||
public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class InFunctionKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public interface T {
|
||||
public abstract @org.jetbrains.annotations.NotNull method result(): java.lang.String
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
public final class A {
|
||||
private final @org.jetbrains.annotations.NotNull field x: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @org.jetbrains.annotations.NotNull method foo(): T
|
||||
public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class InPropertyKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public interface T {
|
||||
public abstract @org.jetbrains.annotations.NotNull method result(): java.lang.String
|
||||
}
|
||||
compiler/testData/codegen/light-analysis/closures/captureOuterProperty/inPropertyDeepObjectChain.txt
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
public final class A {
|
||||
private final @org.jetbrains.annotations.NotNull field x: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @org.jetbrains.annotations.NotNull method foo(): T
|
||||
public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class InPropertyDeepObjectChainKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public interface T {
|
||||
public abstract @org.jetbrains.annotations.NotNull method result(): java.lang.String
|
||||
}
|
||||
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
public final class A {
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method foo(): T
|
||||
}
|
||||
|
||||
|
||||
public class B {
|
||||
private final @org.jetbrains.annotations.NotNull field x: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class InPropertyFromSuperClassKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public interface T {
|
||||
public abstract @org.jetbrains.annotations.NotNull method result(): java.lang.String
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
public abstract class A {
|
||||
private final field x: java.lang.Object
|
||||
public method <init>(p0: java.lang.Object): void
|
||||
public final method getX(): java.lang.Object
|
||||
}
|
||||
|
||||
|
||||
public class B {
|
||||
public method <init>(): void
|
||||
}
|
||||
|
||||
|
||||
public final class C {
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method foo(): T
|
||||
}
|
||||
|
||||
|
||||
public final class InPropertyFromSuperSuperClassKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public interface T {
|
||||
public abstract @org.jetbrains.annotations.NotNull method result(): java.lang.String
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
public final class B {
|
||||
private final field x: int
|
||||
public method <init>(p0: int): void
|
||||
public final method foo(): void
|
||||
public final method getX(): int
|
||||
}
|
||||
|
||||
|
||||
public final class Kt4176Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public class Z {
|
||||
private final field s: int
|
||||
public method <init>(p0: int): void
|
||||
public method a(): void
|
||||
public final method getS(): int
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public final class Kt4656Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Reference in New Issue
Block a user