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
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class CallInlineLocalInLambdaKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): java.lang.String
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class DefinedWithinLambdaKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): java.lang.String
|
||||
}
|
||||
compiler/testData/codegen/light-analysis/functions/localFunctions/definedWithinLambdaInnerUsage1.txt
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class DefinedWithinLambdaInnerUsage1Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): java.lang.String
|
||||
}
|
||||
compiler/testData/codegen/light-analysis/functions/localFunctions/definedWithinLambdaInnerUsage2.txt
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public final class DefinedWithinLambdaInnerUsage2Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method noInlineFoo(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): java.lang.String
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
public final class Kt2895Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method outer(): void
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
public final class Kt3308Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
public final class Kt3978Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
public final class Kt4119Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method foo(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function1): int
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public final class Kt4119_2Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
public final class Kt4514Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
public final class Kt4777Kt {
|
||||
private final static @org.jetbrains.annotations.NotNull field p: java.lang.Runnable
|
||||
private static @org.jetbrains.annotations.NotNull field result: java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method getP(): java.lang.Runnable
|
||||
public final static @org.jetbrains.annotations.NotNull method getResult(): java.lang.String
|
||||
public final static method setResult(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
public final class Kt4783Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method local(): int
|
||||
}
|
||||
|
||||
|
||||
public final class T {
|
||||
private final field value: int
|
||||
public method <init>(p0: int): void
|
||||
public final method getValue(): int
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
public final class Kt4784Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method plusAssign(): T
|
||||
}
|
||||
|
||||
|
||||
public class T {
|
||||
private field value: int
|
||||
public method <init>(p0: int): void
|
||||
public final method getValue(): int
|
||||
public final method setValue(p0: int): void
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
public final class It {
|
||||
private final @org.jetbrains.annotations.NotNull field id: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @org.jetbrains.annotations.NotNull method getId(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class Kt4989Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
public final class LocalExtensionOnNullableParameterKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method localExtensionOnNullableParameter(): T
|
||||
}
|
||||
|
||||
|
||||
public class T {
|
||||
private field value: int
|
||||
public method <init>(p0: int): void
|
||||
public final method getValue(): int
|
||||
public final method setValue(p0: int): void
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
public final class LocalFunctionInConstructorKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class Test {
|
||||
private final field property: int
|
||||
public method <init>(): void
|
||||
public final method getProperty(): int
|
||||
}
|
||||
Reference in New Issue
Block a user