diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.1.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.1.kt index 75c027a45ec..560f9ef5a64 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.1.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.1.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 1 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the class. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.10.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.10.kt index eec90c17689..8c463a745bb 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.10.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.10.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 10 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the companionObject. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.11.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.11.kt index 6fd6cad3f98..103db2acdbb 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.11.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.11.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 11 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the function. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.12.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.12.kt index c1e04b0a374..11b3dbe8e8c 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.12.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.12.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 12 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the setter. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.13.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.13.kt index 4b58421e8f3..adab549b6cd 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.13.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.13.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 13 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the simpleUserType. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.14.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.14.kt index 36c626907ff..6583826cb84 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.14.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.14.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 14 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the typeParameter. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.15.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.15.kt index 22df8568e0e..1369d86ab0c 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.15.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.15.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 15 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the parameter. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.16.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.16.kt index f35f9f73d27..229c2b9eb0b 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.16.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.16.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 16 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the fileAnnotationComplex. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.17.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.17.kt index 1048b1bbc90..795e4de5436 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.17.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.17.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 17 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the object. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.18.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.18.kt index ab2e156f7dd..ca4b6ab3d57 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.18.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.18.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 18 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the typeAlias. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.19.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.19.kt index 7c42bad91cb..9739905874b 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.19.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.19.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 19 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the import. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.2.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.2.kt index d28848e51cd..326b8b0c882 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.2.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.2.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 2 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the labelReference. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.20.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.20.kt index f74e58a385a..c5f706fbbc5 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.20.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.20.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 20 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the infixFunctionCall. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.21.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.21.kt index c88db7e867b..ba6eff5bb70 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.21.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.21.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 21 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the catchBlock. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.22.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.22.kt index d427e09b144..b85530e0bfb 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.22.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.22.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 22 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the labelDefinition. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.23.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.23.kt index 4f7fb5b6477..0303880ed1e 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.23.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.23.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 23 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the atomicExpression. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.24.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.24.kt index 491208d0c3b..306eb7f0d86 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.24.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.24.kt @@ -3,7 +3,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 24 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the variableDeclarationEntry. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.25.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.25.kt index 464c43e627b..3cc8c3565ad 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.25.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.25.kt @@ -3,7 +3,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 25 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the valueArgument. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.26.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.26.kt index 1c7d4fcfa7d..213b4f567bb 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.26.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.26.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 26 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the callableReference. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.3.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.3.kt index 3bf1f93306b..df6be0d7770 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.3.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.3.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 3 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the typeConstraint. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.4.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.4.kt index 3a8403f9d54..2763e65ead2 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.4.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.4.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 4 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the fileAnnotationSimple. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.5.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.5.kt index 8033f927c95..83e65de4355 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.5.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.5.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 5 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the packageComplex. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.6.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.6.kt index 27670c18e82..706070926fe 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.6.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.6.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 6 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the packageSimple. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.7.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.7.kt index f3a79478438..d371fbc04d6 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.7.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.7.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 7 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the enumEntry. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.8.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.8.kt index 7177329fb34..71e9d9c2544 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.8.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.8.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 8 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the stringTemplateElement. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.9.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.9.kt index 9d6c07e2994..e275c237079 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.9.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.9.kt @@ -1,7 +1,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 9 * DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the unescapedAnnotation. diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/testsMap.json b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/testsMap.json index c888854e20d..dc6ab08a644 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/testsMap.json +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/constant-literals/boolean-literals/testsMap.json @@ -3,157 +3,157 @@ "pos": { "2": [ { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the companionObject.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the variableDeclarationEntry.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the class.", "unexpectedBehaviour": true }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the infixFunctionCall.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the typeParameter.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the packageComplex.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the catchBlock.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the parameter.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the fileAnnotationSimple.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the function.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the valueArgument.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the unescapedAnnotation.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the typeAlias.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the stringTemplateElement.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the import.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the labelDefinition.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the fileAnnotationComplex.", "unexpectedBehaviour": true }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the enumEntry.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the setter.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the callableReference.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the typeConstraint.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the simpleUserType.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the labelReference.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the atomicExpression.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the object.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-300", "casesNumber": 0, "description": "The use of Boolean literals as the identifier (with backtick) in the packageSimple.", "unexpectedBehaviour": false diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/try-expression/p-7/pos/1.1.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/try-expression/p-7/pos/1.1.kt index d946eda9faf..36cdec3e86f 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/try-expression/p-7/pos/1.1.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/try-expression/p-7/pos/1.1.kt @@ -3,7 +3,7 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-218 + * SPEC VERSION: 0.1-297 * PLACE: expressions, try-expression -> paragraph 7 -> sentence 1 * NUMBER: 1 * DESCRIPTION: finally block has no effect on the value returned by the try-expression diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/try-expression/testsMap.json b/compiler/tests-spec/testData/codegen/box/linked/expressions/try-expression/testsMap.json index 3bf797005ed..d9cb2c51f61 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/try-expression/testsMap.json +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/try-expression/testsMap.json @@ -3,7 +3,7 @@ "pos": { "1": [ { - "specVersion": "0.1-218", + "specVersion": "0.1-297", "casesNumber": 0, "description": "finally block has no effect on the value returned by the try-expression", "unexpectedBehaviour": false diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-2/neg/1.1.exceptions.compiletime.txt b/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-2/neg/1.1.exceptions.compiletime.txt new file mode 100644 index 00000000000..09ce633ebbc --- /dev/null +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-2/neg/1.1.exceptions.compiletime.txt @@ -0,0 +1 @@ +java.lang.IllegalStateException: CANNOT_CHECK_FOR_ERASED: Cannot check for instance of erased type: A (16,18) in /1.1.kt diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-1/neg/2.1.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-2/neg/1.1.kt similarity index 79% rename from compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-1/neg/2.1.kt rename to compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-2/neg/1.1.kt index bdfb68ba314..d99e278f835 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-1/neg/2.1.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-2/neg/1.1.kt @@ -3,8 +3,8 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-218 - * PLACE: expressions, type-checking-and-containment-checking-expressions, type-checking-expression -> paragraph 1 -> sentence 2 + * SPEC VERSION: 0.1-297 + * PLACE: expressions, type-checking-and-containment-checking-expressions, type-checking-expression -> paragraph 2 -> sentence 1 * NUMBER: 1 * DESCRIPTION: E is T: The type T must be runtime-available, otherwise it is a compiler error * EXCEPTION: compiletime diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos/1.1.kt b/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-5/pos/1.1.kt similarity index 83% rename from compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos/1.1.kt rename to compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-5/pos/1.1.kt index a5225814d3e..a869e7a755f 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos/1.1.kt +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-5/pos/1.1.kt @@ -3,8 +3,8 @@ /* * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-218 - * PLACE: expressions, type-checking-and-containment-checking-expressions, type-checking-expression -> paragraph 4 -> sentence 1 + * SPEC VERSION: 0.1-297 + * PLACE: expressions, type-checking-and-containment-checking-expressions, type-checking-expression -> paragraph 5 -> sentence 1 * NUMBER: 1 * DESCRIPTION: the expression null is T? for any type T always evaluates to true */ diff --git a/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/testsMap.json b/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/testsMap.json index 7e4839a8d57..663ab6e917d 100644 --- a/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/testsMap.json +++ b/compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/testsMap.json @@ -1,15 +1,5 @@ { "1": { - "neg": { - "2": [ - { - "specVersion": "0.1-218", - "casesNumber": 0, - "description": "E is T: The type T must be runtime-available, otherwise it is a compiler error", - "unexpectedBehaviour": false - } - ] - }, "pos": { "3": [ { @@ -27,11 +17,23 @@ ] } }, - "4": { + "2": { + "neg": { + "1": [ + { + "specVersion": "0.1-297", + "casesNumber": 0, + "description": "E is T: The type T must be runtime-available, otherwise it is a compiler error", + "unexpectedBehaviour": false + } + ] + } + }, + "5": { "pos": { "1": [ { - "specVersion": "0.1-218", + "specVersion": "0.1-297", "casesNumber": 0, "description": "the expression null is T? for any type T always evaluates to true", "unexpectedBehaviour": false diff --git a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.1.kt b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.1.kt index f8cb60f5c80..956d9a7ee95 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.1.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-213 + * SPEC VERSION: 0.1-296 * PLACE: control--and-data-flow-analysis, control-flow-graph, expressions-1, conditional-expressions -> paragraph 1 -> sentence 1 * NUMBER: 1 * DESCRIPTION: check if-expressions must have both branches. diff --git a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.2.kt b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.2.kt index 7681d15c8df..525ebc1fd9f 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.2.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.2.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-213 + * SPEC VERSION: 0.1-296 * PLACE: control--and-data-flow-analysis, control-flow-graph, expressions-1, conditional-expressions -> paragraph 1 -> sentence 1 * NUMBER: 2 * DESCRIPTION: check if-expressions must have both branches. diff --git a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.3.kt b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.3.kt index 49ecbdb4633..04bf1652a57 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.3.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.3.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-213 + * SPEC VERSION: 0.1-296 * PLACE: control--and-data-flow-analysis, control-flow-graph, expressions-1, conditional-expressions -> paragraph 1 -> sentence 1 * NUMBER: 3 * DESCRIPTION: check if-expressions must have both branches. (attempt to pass Nothing to if-condition without 'else' key word) diff --git a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.4.kt b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.4.kt index 189b65847c6..883c33dfdd3 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.4.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.4.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-213 + * SPEC VERSION: 0.1-296 * PLACE: control--and-data-flow-analysis, control-flow-graph, expressions-1, conditional-expressions -> paragraph 1 -> sentence 1 * NUMBER: 4 * DESCRIPTION: check if-expressions must have both branches. (attempt to pass Nothing to if-condition with 'else' key word) diff --git a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/2.1.kt b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/2.1.kt index d55ba491a8c..177057de52e 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/2.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/2.1.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-213 + * SPEC VERSION: 0.1-296 * PLACE: control--and-data-flow-analysis, control-flow-graph, expressions-1, conditional-expressions -> paragraph 1 -> sentence 2 * NUMBER: 1 * DESCRIPTION: check any if-statement in kotlin may be trivially turned into such an expression by replacing the missing branch with a kotlin.Unit object expression. diff --git a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/1.1.kt b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/1.1.kt index b4201b2b636..ecb9f1842e7 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/1.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/1.1.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-213 + * SPEC VERSION: 0.1-296 * PLACE: control--and-data-flow-analysis, control-flow-graph, expressions-1, conditional-expressions -> paragraph 1 -> sentence 1 * NUMBER: 1 * DESCRIPTION: check if-expressions must have both branches. diff --git a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/1.2.kt b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/1.2.kt index a7ee17453c1..4d9b294ecdd 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/1.2.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/1.2.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-213 + * SPEC VERSION: 0.1-296 * PLACE: control--and-data-flow-analysis, control-flow-graph, expressions-1, conditional-expressions -> paragraph 1 -> sentence 1 * NUMBER: 2 * DESCRIPTION: check if-expressions must have both branches. diff --git a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/2.1.kt b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/2.1.kt index c6d9575f495..ba49c5cd25e 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/2.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/2.1.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-213 + * SPEC VERSION: 0.1-296 * PLACE: control--and-data-flow-analysis, control-flow-graph, expressions-1, conditional-expressions -> paragraph 1 -> sentence 2 * NUMBER: 1 * DESCRIPTION: check any if-statement in kotlin may be trivially turned into such an expression by replacing the missing branch with a kotlin.Unit object expression. diff --git a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/testsMap.json b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/testsMap.json index efe6f9b6165..f8412bab5a7 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/testsMap.json +++ b/compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/testsMap.json @@ -3,7 +3,7 @@ "neg": { "2": [ { - "specVersion": "0.1-213", + "specVersion": "0.1-296", "casesNumber": 2, "description": "check any if-statement in kotlin may be trivially turned into such an expression by replacing the missing branch with a kotlin.Unit object expression.", "unexpectedBehaviour": false @@ -11,25 +11,25 @@ ], "1": [ { - "specVersion": "0.1-213", + "specVersion": "0.1-296", "casesNumber": 2, "description": "check if-expressions must have both branches.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-213", + "specVersion": "0.1-296", "casesNumber": 8, "description": "check if-expressions must have both branches. (attempt to pass Nothing to if-condition without \u0027else\u0027 key word)", "unexpectedBehaviour": true }, { - "specVersion": "0.1-213", + "specVersion": "0.1-296", "casesNumber": 5, "description": "check if-expressions must have both branches. (attempt to pass Nothing to if-condition with \u0027else\u0027 key word)", "unexpectedBehaviour": true }, { - "specVersion": "0.1-213", + "specVersion": "0.1-296", "casesNumber": 2, "description": "check if-expressions must have both branches.", "unexpectedBehaviour": false @@ -39,7 +39,7 @@ "pos": { "2": [ { - "specVersion": "0.1-213", + "specVersion": "0.1-296", "casesNumber": 2, "description": "check any if-statement in kotlin may be trivially turned into such an expression by replacing the missing branch with a kotlin.Unit object expression.", "unexpectedBehaviour": false @@ -47,13 +47,13 @@ ], "1": [ { - "specVersion": "0.1-213", + "specVersion": "0.1-296", "casesNumber": 2, "description": "check if-expressions must have both branches.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-213", + "specVersion": "0.1-296", "casesNumber": 3, "description": "check if-expressions must have both branches.", "unexpectedBehaviour": false diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/neg/2.1.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/neg/2.1.kt index e1441ee1faf..fdeff8f8d19 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/neg/2.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/neg/2.1.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-218 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 1 * DESCRIPTION: checking of type for Boolean values: impossible to use as identifiers diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.1.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.1.kt index 4c04f764aed..9ecc0ca0fe6 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.1.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-218 + * SPEC VERSION: 0.1-300 * PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 2 * NUMBER: 1 * DESCRIPTION: checking of type for Boolean values: possible to use as identifiers if surround with backticks diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/testsMap.json b/compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/testsMap.json index b53e876c13d..c39655a6c1a 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/testsMap.json +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/testsMap.json @@ -3,7 +3,7 @@ "neg": { "2": [ { - "specVersion": "0.1-218", + "specVersion": "0.1-300", "casesNumber": 7, "description": "checking of type for Boolean values: impossible to use as identifiers", "unexpectedBehaviour": false @@ -21,7 +21,7 @@ "pos": { "2": [ { - "specVersion": "0.1-218", + "specVersion": "0.1-300", "casesNumber": 7, "description": "checking of type for Boolean values: possible to use as identifiers if surround with backticks", "unexpectedBehaviour": false diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2/pos/1.1.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2/pos/1.1.kt new file mode 100644 index 00000000000..4d74422eb40 --- /dev/null +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2/pos/1.1.kt @@ -0,0 +1,54 @@ +// !LANGUAGE: +NewInference +// !DIAGNOSTICS: -UNREACHABLE_CODE -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION +// SKIP_TXT + +/* + * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) + * + * SPEC VERSION: 0.1-296 + * PLACE: expressions, not-null-assertion-expression -> paragraph 2 -> sentence 1 + * NUMBER: 1 + * DESCRIPTION: If the type of e is non-nullable, not-null assertion expression e!! has no effect. + */ + +// MODULE: libModule +// FILE: libModule/JavaClass.java +package libModule; + +public class JavaClass { + public static final boolean FALSE = false; + public static int obj = 5; +} + + +// MODULE: mainModule(libModule) +// FILE: KotlinClass.kt +package mainModule +import libModule.* + + +// TESTCASE NUMBER: 1 +fun case1() { + val res = JavaClass.FALSE!! +} + +// TESTCASE NUMBER: 2 +fun case2() { + val x = JavaClass.obj!! +} + +// TESTCASE NUMBER: 3 +fun case3() { + val a = false + val x = a!! +} + +// TESTCASE NUMBER: 4 +fun case4() { + val x = "weds"!! +} + +// TESTCASE NUMBER: 5 +fun case5(nothing: Nothing) { + val y = nothing!! +} diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-3/pos/1.1.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-3/pos/1.1.kt index 840d9ef922f..451daf95b28 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-3/pos/1.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-3/pos/1.1.kt @@ -5,19 +5,21 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-220 + * SPEC VERSION: 0.1-296 * PLACE: expressions, not-null-assertion-expression -> paragraph 3 -> sentence 1 * NUMBER: 1 - * DESCRIPTION: If the type of e is non-nullable, not-null assertion expression e!! has no effect. + * DESCRIPTION: The type of non-null assertion e!! expression is the non-nullable variant of the type of e. + * HELPERS: checkType */ + // MODULE: libModule // FILE: libModule/JavaClass.java package libModule; public class JavaClass { - public static final boolean FALSE = false; - public static int obj = 5; + public static final String STR; + public static Object obj; } @@ -25,30 +27,44 @@ public class JavaClass { // FILE: KotlinClass.kt package mainModule import libModule.* +import checkSubtype // TESTCASE NUMBER: 1 fun case1() { - val res = JavaClass.FALSE!! + val a = JavaClass.STR + a + val res = a!! + res } // TESTCASE NUMBER: 2 fun case2() { - val x = JavaClass.obj!! + val a = JavaClass.obj + a + val x = a!! + x } // TESTCASE NUMBER: 3 fun case3() { - val a = false - val x = a!! + val a : Any? = false + a + val x = a!! + x } // TESTCASE NUMBER: 4 fun case4() { - val x = "weds"!! + val a : String? = "weds" + a + val x = a!! + x } // TESTCASE NUMBER: 5 -fun case5(nothing: Nothing) { - val y = nothing!! +fun case5(nothing: Nothing?) { + nothing + val y = nothing!! + y } diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-4/pos/1.1.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-4/pos/1.1.kt deleted file mode 100644 index dd7b34ce7cf..00000000000 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-4/pos/1.1.kt +++ /dev/null @@ -1,70 +0,0 @@ -// !LANGUAGE: +NewInference -// !DIAGNOSTICS: -UNREACHABLE_CODE -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION -// SKIP_TXT - -/* - * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) - * - * SPEC VERSION: 0.1-220 - * PLACE: expressions, not-null-assertion-expression -> paragraph 4 -> sentence 1 - * NUMBER: 1 - * DESCRIPTION: The type of non-null assertion e!! expression is the non-nullable variant of the type of e. - * HELPERS: checkType - */ - - -// MODULE: libModule -// FILE: libModule/JavaClass.java -package libModule; - -public class JavaClass { - public static final String STR; - public static Object obj; -} - - -// MODULE: mainModule(libModule) -// FILE: KotlinClass.kt -package mainModule -import libModule.* -import checkSubtype - - -// TESTCASE NUMBER: 1 -fun case1() { - val a = JavaClass.STR - a - val res = a!! - res -} - -// TESTCASE NUMBER: 2 -fun case2() { - val a = JavaClass.obj - a - val x = a!! - x -} - -// TESTCASE NUMBER: 3 -fun case3() { - val a : Any? = false - a - val x = a!! - x -} - -// TESTCASE NUMBER: 4 -fun case4() { - val a : String? = "weds" - a - val x = a!! - x -} - -// TESTCASE NUMBER: 5 -fun case5(nothing: Nothing?) { - nothing - val y = nothing!! - y -} diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/testsMap.json b/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/testsMap.json index 6c6a6016b71..e7236d343b5 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/testsMap.json +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/testsMap.json @@ -1,9 +1,9 @@ { - "4": { + "3": { "pos": { "1": [ { - "specVersion": "0.1-220", + "specVersion": "0.1-296", "casesNumber": 5, "description": "The type of non-null assertion e!! expression is the non-nullable variant of the type of e.", "unexpectedBehaviour": false @@ -11,11 +11,11 @@ ] } }, - "3": { + "2": { "pos": { "1": [ { - "specVersion": "0.1-220", + "specVersion": "0.1-296", "casesNumber": 5, "description": "If the type of e is non-nullable, not-null assertion expression e!! has no effect.", "unexpectedBehaviour": false diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/neg/1.1.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/neg/1.1.kt index c24e0690311..8d832ebe0f8 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/neg/1.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/neg/1.1.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-218 + * SPEC VERSION: 0.1-296 * PLACE: expressions, try-expression -> paragraph 8 -> sentence 1 * RELEVANT PLACES: expressions, try-expression -> paragraph 9 -> sentence 1 * NUMBER: 1 diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/pos/1.1.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/pos/1.1.kt index 2345ea75868..ddfb3f1e00e 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/pos/1.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/pos/1.1.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-218 + * SPEC VERSION: 0.1-296 * PLACE: expressions, try-expression -> paragraph 8 -> sentence 1 * RELEVANT PLACES: expressions, try-expression -> paragraph 9 -> sentence 1 * NUMBER: 1 diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/testsMap.json b/compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/testsMap.json index 311c66fb73a..6cad0f19115 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/testsMap.json +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/testsMap.json @@ -144,7 +144,7 @@ "neg": { "1": [ { - "specVersion": "0.1-218", + "specVersion": "0.1-296", "casesNumber": 3, "description": "The type of the try-expression is the least upper bound of the types of the last expressions of the try body and the last expressions of all the catch blocks", "unexpectedBehaviour": true @@ -154,7 +154,7 @@ "pos": { "1": [ { - "specVersion": "0.1-218", + "specVersion": "0.1-296", "casesNumber": 3, "description": "The type of the try-expression is the least upper bound of the types of the last expressions of the try body and the last expressions of all the catch blocks", "unexpectedBehaviour": false @@ -166,7 +166,7 @@ "neg": { "1": [ { - "specVersion": "0.1-218", + "specVersion": "0.1-296", "casesNumber": 3, "description": "The type of the try-expression is the least upper bound of the types of the last expressions of the try body and the last expressions of all the catch blocks", "path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/neg/1.1.kt", @@ -177,7 +177,7 @@ "pos": { "1": [ { - "specVersion": "0.1-218", + "specVersion": "0.1-296", "casesNumber": 3, "description": "The type of the try-expression is the least upper bound of the types of the last expressions of the try body and the last expressions of all the catch blocks", "path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/pos/1.1.kt", diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-3/pos/1.1.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos/1.1.kt similarity index 91% rename from compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-3/pos/1.1.kt rename to compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos/1.1.kt index 83bfd9f9c09..3cde7d85ce2 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-3/pos/1.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos/1.1.kt @@ -5,8 +5,8 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-218 - * PLACE: expressions, type-checking-and-containment-checking-expressions, type-checking-expression -> paragraph 3 -> sentence 1 + * SPEC VERSION: 0.1-296 + * PLACE: expressions, type-checking-and-containment-checking-expressions, type-checking-expression -> paragraph 4 -> sentence 1 * RELEVANT PLACES: expressions, type-checking-and-containment-checking-expressions, type-checking-expression -> paragraph 4 -> sentence 1 * NUMBER: 1 * DESCRIPTION: Type-checking expression always has type kotlin.Boolean. diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/testsMap.json b/compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/testsMap.json index d02ab56a8c0..9fe73dd521d 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/testsMap.json +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/testsMap.json @@ -1,24 +1,18 @@ { - "3": { - "pos": { - "1": [ - { - "specVersion": "0.1-218", - "casesNumber": 4, - "description": "Type-checking expression always has type kotlin.Boolean.", - "unexpectedBehaviour": false - } - ] - } - }, "4": { "pos": { "1": [ { - "specVersion": "0.1-218", + "specVersion": "0.1-296", "casesNumber": 4, "description": "Type-checking expression always has type kotlin.Boolean.", - "path": "compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-3/pos/1.1.kt", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-296", + "casesNumber": 4, + "description": "Type-checking expression always has type kotlin.Boolean.", + "path": "compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos/1.1.kt", "unexpectedBehaviour": false } ] diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/1.1.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/1.1.kt index 42a04d5b7a3..00734aacc2c 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/1.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/1.1.kt @@ -3,7 +3,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 1 * NUMBER: 1 * DESCRIPTION: 'When' with bound value and type test condition (without companion object in classes), but without type checking operator. diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/1.2.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/1.2.kt index f0cf1b4a7e1..12b16cbadf7 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/1.2.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/1.2.kt @@ -3,7 +3,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 1 * NUMBER: 2 * DESCRIPTION: 'When' with bound value and type test condition on the non-type operand of the type checking operator. diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.1.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.1.kt index fd825c1e84a..127176ed15d 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.1.kt @@ -3,7 +3,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 3 * NUMBER: 1 * DESCRIPTION: 'When' with bound value and 'when condition' with range expression, but without containment checking operator. diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.2.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.2.kt index c538d9f6abc..cb872a93cec 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.2.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.2.kt @@ -4,7 +4,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 3 * NUMBER: 2 * DESCRIPTION: 'When' with bound value and 'when condition' with contains operator and type without defined contains operator. diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.1.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.1.kt index 4bd35a4fdd9..fcddc40a9f1 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.1.kt @@ -3,7 +3,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 1 * NUMBER: 1 * DESCRIPTION: 'When' with bound value and type test condition. diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.2.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.2.kt index f2da98e62d1..e0edb793ff3 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.2.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.2.kt @@ -3,7 +3,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 1 * NUMBER: 2 * DESCRIPTION: 'When' with bound value and type test condition (invert type checking operator). diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.3.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.3.kt index 5fb4f0379a7..bcd9189988a 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.3.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.3.kt @@ -3,7 +3,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 1 * NUMBER: 3 * DESCRIPTION: 'When' with bound value and enumaration of type test conditions. diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.4.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.4.kt index fd12bd5e66d..4f257345d29 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.4.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.4.kt @@ -3,7 +3,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 1 * NUMBER: 4 * DESCRIPTION: 'When' with bound value and enumaration of type test conditions (with invert type checking operator). diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/3.1.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/3.1.kt index b5a83c7b865..84c8465092a 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/3.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/3.1.kt @@ -3,7 +3,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 3 * NUMBER: 1 * DESCRIPTION: 'When' with bound value and containment operator. diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/3.2.kt b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/3.2.kt index f41134fd899..75a99a5aa28 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/3.2.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/3.2.kt @@ -3,7 +3,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 3 * NUMBER: 2 * DESCRIPTION: 'When' with bound value and enumeration of the containment operators. diff --git a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/testsMap.json b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/testsMap.json index ac978e8b637..4d50456cc11 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/testsMap.json +++ b/compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/testsMap.json @@ -11,13 +11,13 @@ ], "1": [ { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 1, "description": "\u0027When\u0027 with bound value and type test condition on the non-type operand of the type checking operator.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 3, "description": "\u0027When\u0027 with bound value and type test condition (without companion object in classes), but without type checking operator.", "unexpectedBehaviour": false @@ -74,13 +74,13 @@ ], "3": [ { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 1, "description": "\u0027When\u0027 with bound value and \u0027when condition\u0027 with range expression, but without containment checking operator.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 2, "description": "\u0027When\u0027 with bound value and \u0027when condition\u0027 with contains operator and type without defined contains operator.", "unexpectedBehaviour": false @@ -190,25 +190,25 @@ ], "1": [ { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 5, "description": "\u0027When\u0027 with bound value and type test condition (invert type checking operator).", "unexpectedBehaviour": true }, { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 6, "description": "\u0027When\u0027 with bound value and enumaration of type test conditions.", "unexpectedBehaviour": true }, { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 7, "description": "\u0027When\u0027 with bound value and enumaration of type test conditions (with invert type checking operator).", "unexpectedBehaviour": true }, { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 6, "description": "\u0027When\u0027 with bound value and type test condition.", "unexpectedBehaviour": true @@ -251,13 +251,13 @@ ], "3": [ { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 2, "description": "\u0027When\u0027 with bound value and containment operator.", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 2, "description": "\u0027When\u0027 with bound value and enumeration of the containment operators.", "unexpectedBehaviour": false diff --git a/compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-8/pos/1.1.kt b/compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-8/pos/1.1.kt index e7697dad5a8..51be42a2286 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-8/pos/1.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-8/pos/1.1.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-201 + * SPEC VERSION: 0.1-296 * PLACE: type-system, introduction-1 -> paragraph 8 -> sentence 1 * RELEVANT PLACES: type-system, type-kinds, built-in-types, kotlin.Any -> paragraph 1 -> sentence 1 * NUMBER: 1 diff --git a/compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/testsMap.json b/compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/testsMap.json index 9bd23c6c19c..10b6d69999c 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/testsMap.json +++ b/compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/testsMap.json @@ -3,14 +3,14 @@ "pos": { "1": [ { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 11, "description": "The use of Boolean literals as the identifier (with backtick) in the class.", "path": "compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos/1.2.kt", "unexpectedBehaviour": false }, { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 9, "description": "The use of Boolean literals as the identifier (with backtick) in the class.", "path": "compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos/1.1.kt", @@ -55,7 +55,7 @@ ], "1": [ { - "specVersion": "0.1-201", + "specVersion": "0.1-296", "casesNumber": 13, "description": "The use of Boolean literals as the identifier (with backtick) in the class.", "unexpectedBehaviour": false diff --git a/compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos/1.1.kt b/compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos/1.1.kt index c732b6819db..888d5ae2e8c 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos/1.1.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos/1.1.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: type-system, type-kinds, built-in-types, kotlin.any -> paragraph 1 -> sentence 1 * RELEVANT PLACES: type-system, introduction-1 -> paragraph 7 -> sentence 1 * NUMBER: 1 diff --git a/compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos/1.2.kt b/compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos/1.2.kt index ebabc4eddcb..62e0588bf3e 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos/1.2.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos/1.2.kt @@ -5,7 +5,7 @@ /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: type-system, type-kinds, built-in-types, kotlin.any -> paragraph 1 -> sentence 1 * RELEVANT PLACES: type-system, introduction-1 -> paragraph 7 -> sentence 1 * NUMBER: 2 diff --git a/compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/testsMap.json b/compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/testsMap.json index 44e7489870d..c7f9deaa67c 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/testsMap.json +++ b/compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/testsMap.json @@ -3,7 +3,7 @@ "pos": { "1": [ { - "specVersion": "0.1-201", + "specVersion": "0.1-296", "casesNumber": 13, "description": "The use of Boolean literals as the identifier (with backtick) in the class.", "path": "compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-8/pos/1.1.kt", diff --git a/compiler/tests-spec/testData/psi/linked/expressions/when-expression/p-6/neg/1.1.kt b/compiler/tests-spec/testData/psi/linked/expressions/when-expression/p-6/neg/1.1.kt index 13bddfa10d3..4dc2d2e083f 100644 --- a/compiler/tests-spec/testData/psi/linked/expressions/when-expression/p-6/neg/1.1.kt +++ b/compiler/tests-spec/testData/psi/linked/expressions/when-expression/p-6/neg/1.1.kt @@ -1,7 +1,7 @@ /* * KOTLIN PSI SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 1 * NUMBER: 1 * DESCRIPTION: 'When' with bound value and type test condition, but missed type in 'when condition'. diff --git a/compiler/tests-spec/testData/psi/linked/expressions/when-expression/p-6/neg/1.2.kt b/compiler/tests-spec/testData/psi/linked/expressions/when-expression/p-6/neg/1.2.kt index 6d524bf5530..b8cd5037610 100644 --- a/compiler/tests-spec/testData/psi/linked/expressions/when-expression/p-6/neg/1.2.kt +++ b/compiler/tests-spec/testData/psi/linked/expressions/when-expression/p-6/neg/1.2.kt @@ -1,7 +1,7 @@ /* * KOTLIN PSI SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 1 * NUMBER: 2 * DESCRIPTION: 'When' with bound value and 'when condition' with type checking operator and non-type value. diff --git a/compiler/tests-spec/testData/psi/linked/expressions/when-expression/p-6/neg/3.1.kt b/compiler/tests-spec/testData/psi/linked/expressions/when-expression/p-6/neg/3.1.kt index 654af0bf587..6f872cf6467 100644 --- a/compiler/tests-spec/testData/psi/linked/expressions/when-expression/p-6/neg/3.1.kt +++ b/compiler/tests-spec/testData/psi/linked/expressions/when-expression/p-6/neg/3.1.kt @@ -1,7 +1,7 @@ /* * KOTLIN PSI SPEC TEST (NEGATIVE) * - * SPEC VERSION: 0.1-100 + * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 3 * NUMBER: 1 * DESCRIPTION: 'When' with bound value and 'when condition' with range expression, but without contains operator. diff --git a/compiler/tests-spec/testData/psi/linked/expressions/when-expression/testsMap.json b/compiler/tests-spec/testData/psi/linked/expressions/when-expression/testsMap.json index 03f35380171..025e2680909 100644 --- a/compiler/tests-spec/testData/psi/linked/expressions/when-expression/testsMap.json +++ b/compiler/tests-spec/testData/psi/linked/expressions/when-expression/testsMap.json @@ -11,13 +11,13 @@ ], "1": [ { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 0, "description": "\u0027When\u0027 with bound value and \u0027when condition\u0027 with type checking operator and non-type value.", "unexpectedBehaviour": true }, { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 0, "description": "\u0027When\u0027 with bound value and type test condition, but missed type in \u0027when condition\u0027.", "unexpectedBehaviour": false @@ -25,7 +25,7 @@ ], "3": [ { - "specVersion": "0.1-100", + "specVersion": "0.1-296", "casesNumber": 0, "description": "\u0027When\u0027 with bound value and \u0027when condition\u0027 with range expression, but without contains operator.", "unexpectedBehaviour": false diff --git a/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/checkers/DiagnosticsTestSpecGenerated.java b/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/checkers/DiagnosticsTestSpecGenerated.java index 1460375441f..a7d6ba9a6c4 100644 --- a/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/checkers/DiagnosticsTestSpecGenerated.java +++ b/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/checkers/DiagnosticsTestSpecGenerated.java @@ -2035,6 +2035,37 @@ public class DiagnosticsTestSpecGenerated extends AbstractDiagnosticsTestSpec { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression"), Pattern.compile("^(.+)\\.kt$"), null, true); } + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class P_2 extends AbstractDiagnosticsTestSpec { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInP_2() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2/pos") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Pos extends AbstractDiagnosticsTestSpec { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("1.1.kt") + public void test1_1() throws Exception { + runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2/pos/1.1.kt"); + } + + public void testAllFilesPresentInPos() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + } + } + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-3") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -2065,37 +2096,6 @@ public class DiagnosticsTestSpecGenerated extends AbstractDiagnosticsTestSpec { } } } - - @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-4") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class P_4 extends AbstractDiagnosticsTestSpec { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInP_4() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-4/pos") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Pos extends AbstractDiagnosticsTestSpec { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - @TestMetadata("1.1.kt") - public void test1_1() throws Exception { - runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-4/pos/1.1.kt"); - } - - public void testAllFilesPresentInPos() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - } - } } @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions") @@ -2718,19 +2718,19 @@ public class DiagnosticsTestSpecGenerated extends AbstractDiagnosticsTestSpec { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression"), Pattern.compile("^(.+)\\.kt$"), null, true); } - @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-3") + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) - public static class P_3 extends AbstractDiagnosticsTestSpec { + public static class P_4 extends AbstractDiagnosticsTestSpec { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } - public void testAllFilesPresentInP_3() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-3"), Pattern.compile("^(.+)\\.kt$"), null, true); + public void testAllFilesPresentInP_4() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), null, true); } - @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-3/pos") + @TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Pos extends AbstractDiagnosticsTestSpec { @@ -2740,11 +2740,11 @@ public class DiagnosticsTestSpecGenerated extends AbstractDiagnosticsTestSpec { @TestMetadata("1.1.kt") public void test1_1() throws Exception { - runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-3/pos/1.1.kt"); + runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos/1.1.kt"); } public void testAllFilesPresentInPos() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), null, true); + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), null, true); } } } diff --git a/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/codegen/BlackBoxCodegenTestSpecGenerated.java b/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/codegen/BlackBoxCodegenTestSpecGenerated.java index 24c31b7e56a..9e825841e0f 100644 --- a/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/codegen/BlackBoxCodegenTestSpecGenerated.java +++ b/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/codegen/BlackBoxCodegenTestSpecGenerated.java @@ -2837,11 +2837,6 @@ public class BlackBoxCodegenTestSpecGenerated extends AbstractBlackBoxCodegenTes KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } - @TestMetadata("2.1.kt") - public void test2_1() throws Exception { - runTest("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-1/neg/2.1.kt"); - } - public void testAllFilesPresentInNeg() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), null, true); } @@ -2871,19 +2866,50 @@ public class BlackBoxCodegenTestSpecGenerated extends AbstractBlackBoxCodegenTes } } - @TestMetadata("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4") + @TestMetadata("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-2") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) - public static class P_4 extends AbstractBlackBoxCodegenTestSpec { + public static class P_2 extends AbstractBlackBoxCodegenTestSpec { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } - public void testAllFilesPresentInP_4() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), null, true); + public void testAllFilesPresentInP_2() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-2"), Pattern.compile("^(.+)\\.kt$"), null, true); } - @TestMetadata("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos") + @TestMetadata("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-2/neg") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Neg extends AbstractBlackBoxCodegenTestSpec { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("1.1.kt") + public void test1_1() throws Exception { + runTest("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-2/neg/1.1.kt"); + } + + public void testAllFilesPresentInNeg() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + } + } + + @TestMetadata("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-5") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class P_5 extends AbstractBlackBoxCodegenTestSpec { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInP_5() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-5"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-5/pos") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Pos extends AbstractBlackBoxCodegenTestSpec { @@ -2893,11 +2919,11 @@ public class BlackBoxCodegenTestSpecGenerated extends AbstractBlackBoxCodegenTes @TestMetadata("1.1.kt") public void test1_1() throws Exception { - runTest("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos/1.1.kt"); + runTest("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-5/pos/1.1.kt"); } public void testAllFilesPresentInPos() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), null, true); + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/codegen/box/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), null, true); } } }