AA: showcase strange const evaluation for -1
This commit is contained in:
committed by
Ilya Kirillov
parent
249dc1e1d2
commit
faf6939515
+12
@@ -52,6 +52,18 @@ public class Fe10IdeNormalAnalysisSourceModuleCompileTimeConstantEvaluatorTestGe
|
|||||||
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/binaryExpressionWithString.kt");
|
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/binaryExpressionWithString.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("integerLiteral_minusOne_entire.kt")
|
||||||
|
public void testIntegerLiteral_minusOne_entire() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/integerLiteral_minusOne_entire.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("integerLiteral_minusOne_justOne.kt")
|
||||||
|
public void testIntegerLiteral_minusOne_justOne() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/integerLiteral_minusOne_justOne.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("namedReference_const.kt")
|
@TestMetadata("namedReference_const.kt")
|
||||||
public void testNamedReference_const() throws Exception {
|
public void testNamedReference_const() throws Exception {
|
||||||
|
|||||||
+12
@@ -52,6 +52,18 @@ public class FirIdeDependentAnalysisSourceModuleCompileTimeConstantEvaluatorTest
|
|||||||
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/binaryExpressionWithString.kt");
|
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/binaryExpressionWithString.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("integerLiteral_minusOne_entire.kt")
|
||||||
|
public void testIntegerLiteral_minusOne_entire() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/integerLiteral_minusOne_entire.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("integerLiteral_minusOne_justOne.kt")
|
||||||
|
public void testIntegerLiteral_minusOne_justOne() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/integerLiteral_minusOne_justOne.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("namedReference_const.kt")
|
@TestMetadata("namedReference_const.kt")
|
||||||
public void testNamedReference_const() throws Exception {
|
public void testNamedReference_const() throws Exception {
|
||||||
|
|||||||
+12
@@ -52,6 +52,18 @@ public class FirIdeNormalAnalysisSourceModuleCompileTimeConstantEvaluatorTestGen
|
|||||||
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/binaryExpressionWithString.kt");
|
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/binaryExpressionWithString.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("integerLiteral_minusOne_entire.kt")
|
||||||
|
public void testIntegerLiteral_minusOne_entire() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/integerLiteral_minusOne_entire.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("integerLiteral_minusOne_justOne.kt")
|
||||||
|
public void testIntegerLiteral_minusOne_justOne() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/integerLiteral_minusOne_justOne.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("namedReference_const.kt")
|
@TestMetadata("namedReference_const.kt")
|
||||||
public void testNamedReference_const() throws Exception {
|
public void testNamedReference_const() throws Exception {
|
||||||
|
|||||||
+12
@@ -52,6 +52,18 @@ public class FirStandaloneNormalAnalysisSourceModuleCompileTimeConstantEvaluator
|
|||||||
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/binaryExpressionWithString.kt");
|
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/binaryExpressionWithString.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("integerLiteral_minusOne_entire.kt")
|
||||||
|
public void testIntegerLiteral_minusOne_entire() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/integerLiteral_minusOne_entire.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("integerLiteral_minusOne_justOne.kt")
|
||||||
|
public void testIntegerLiteral_minusOne_justOne() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/integerLiteral_minusOne_justOne.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("namedReference_const.kt")
|
@TestMetadata("namedReference_const.kt")
|
||||||
public void testNamedReference_const() throws Exception {
|
public void testNamedReference_const() throws Exception {
|
||||||
|
|||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
annotation class Annotation(vararg val values: Int)
|
||||||
|
|
||||||
|
@Annotation(<expr>-1</expr>)
|
||||||
|
class C
|
||||||
+9
@@ -0,0 +1,9 @@
|
|||||||
|
expression: -1
|
||||||
|
|
||||||
|
CONSTANT_EXPRESSION_EVALUATION
|
||||||
|
constant: -1
|
||||||
|
constantValueKind: Int
|
||||||
|
|
||||||
|
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||||
|
constantLike: -1
|
||||||
|
constantLikeValueKind: Int
|
||||||
+9
@@ -0,0 +1,9 @@
|
|||||||
|
expression: 1
|
||||||
|
|
||||||
|
CONSTANT_EXPRESSION_EVALUATION
|
||||||
|
constant: 1
|
||||||
|
constantValueKind: Int
|
||||||
|
|
||||||
|
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||||
|
constantLike: 1
|
||||||
|
constantLikeValueKind: Int
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
annotation class Annotation(vararg val values: Int)
|
||||||
|
|
||||||
|
@Annotation(-<expr>1</expr>)
|
||||||
|
class C
|
||||||
+9
@@ -0,0 +1,9 @@
|
|||||||
|
expression: 1
|
||||||
|
|
||||||
|
CONSTANT_EXPRESSION_EVALUATION
|
||||||
|
constant: -1
|
||||||
|
constantValueKind: Int
|
||||||
|
|
||||||
|
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||||
|
constantLike: -1
|
||||||
|
constantLikeValueKind: Int
|
||||||
Reference in New Issue
Block a user