Support several spec places to which tests are linked and require specify spec version for each test
This commit is contained in:
Vendored
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, boolean-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [3] These are strong keywords which cannot be used as identifiers unless [escaped][Escaped identifiers].
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, boolean-literals -> paragraph 1 -> sentence 3
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the class.
|
||||
* NOTE: this test data is generated by FeatureInteractionTestDataGenerator. DO NOT MODIFY CODE MANUALLY
|
||||
|
||||
Vendored
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, boolean-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [3] These are strong keywords which cannot be used as identifiers unless [escaped][Escaped identifiers].
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, boolean-literals -> paragraph 1 -> sentence 3
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the class.
|
||||
* NOTE: this test data is generated by FeatureInteractionTestDataGenerator. DO NOT MODIFY CODE MANUALLY
|
||||
|
||||
Vendored
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, boolean-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [3] These are strong keywords which cannot be used as identifiers unless [escaped][Escaped identifiers].
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, boolean-literals -> paragraph 1 -> sentence 3
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the class.
|
||||
* NOTE: this test data is generated by FeatureInteractionTestDataGenerator. DO NOT MODIFY CODE MANUALLY
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, binary-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [1] A sequence of binary digit symbols (0 or 1) prefixed by 0b or 0B is a binary integer literal.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, binary-integer-literals -> paragraph 1 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Binary integer literals with the prefix only.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, binary-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] Digits may be separated by an underscore symbol, but no underscore can be placed before the first digit or after the last one.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, binary-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Binary integer literals with an underscore after the prefix.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, binary-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] Digits may be separated by an underscore symbol, but no underscore can be placed before the first digit or after the last one.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, binary-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Binary integer literals with an underscore in the first position (it's considered as identifiers).
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, binary-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] Digits may be separated by an underscore symbol, but no underscore can be placed before the first digit or after the last one.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, binary-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: Binary integer literals with an underscore in the last position.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, decimal-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] Digits may be separated by an underscore symbol, but no underscore can be placed before the first digit or after the last one.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, decimal-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Integer literals with an underscore in the last position.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, decimal-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] Digits may be separated by an underscore symbol, but no underscore can be placed before the first digit or after the last one.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, decimal-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Integer literals with an underscore in the first position (it's considered as identifiers).
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, hexadecimal-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [1] A sequence of hexadecimal digit symbols (0 through 9, a through f, A through F) prefixed by 0x or 0X is a hexadecimal integer literal.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, hexadecimal-integer-literals -> paragraph 1 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Hexadecimal integer literals with the prefix only.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, hexadecimal-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] Digits may be separated by an underscore symbol, but no underscore can be placed before the first digit or after the last one.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, hexadecimal-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Hexadecimal integer literals with an underscore after the prefix.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, hexadecimal-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] Digits may be separated by an underscore symbol, but no underscore can be placed before the first digit or after the last one.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, hexadecimal-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Hexadecimal integer literals with an underscore in the first position (it's considered as identifiers).
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, hexadecimal-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] A sequence of hexadecimal digit symbols (0 through 9, a through f, A through F) prefixed by 0x or 0X is a hexadecimal integer literal.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, hexadecimal-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: Hexadecimal integer literals with an underscore in the last position.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, long-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [1] Any of the decimal, hexadecimal or binary literals may be suffixed by the long literal mark (symbol L).
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Binary and hexadecimal integer literals with a long literal mark only.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, long-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [1] Any of the decimal, hexadecimal or binary literals may be suffixed by the long literal mark (symbol L).
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 1
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Various integer literals with a not allowed underscore before the long literal mark.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, long-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [1] Any of the decimal, hexadecimal or binary literals may be suffixed by the long literal mark (symbol L).
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 1
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: Various integer literals with not allowed long literal mark in lower case.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, long-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] An integer literal with the long literal mark has type kotlin.Long; an integer literal without it has one of the types kotlin.Int/kotlin.Short/kotlin.Byte (the selected type is dependent on the context), if its value is in range of the corresponding type, or type kotlin.Long otherwise.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Various integer literals with not allowed long literal mark in lower case (type checking).
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, long-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] An integer literal with the long literal mark has type kotlin.Long; an integer literal without it has one of the types kotlin.Int/kotlin.Short/kotlin.Byte (the selected type is dependent on the context), if its value is in range of the corresponding type, or type kotlin.Long otherwise.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Type checking (comparison with invalid types) of various integer literals with long literal mark.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, long-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] An integer literal with the long literal mark has type kotlin.Long; an integer literal without it has one of the types kotlin.Int/kotlin.Short/kotlin.Byte (the selected type is dependent on the context), if its value is in range of the corresponding type, or type kotlin.Long otherwise.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: Type checking (comparison with invalid types) of various integer literals.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, long-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] An integer literal with the long literal mark has type kotlin.Long; an integer literal without it has one of the types kotlin.Int/kotlin.Short/kotlin.Byte (the selected type is dependent on the context), if its value is in range of the corresponding type, or type kotlin.Long otherwise.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 4
|
||||
* DESCRIPTION: Type checking (comparison with invalid types) of too a big integers.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, long-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] An integer literal with the long literal mark has type kotlin.Long; an integer literal without it has one of the types kotlin.Int/kotlin.Short/kotlin.Byte (the selected type is dependent on the context), if its value is in range of the corresponding type, or type kotlin.Long otherwise.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 5
|
||||
* DESCRIPTION: Check of integer type selection depends on the context (incopatible types).
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, long-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] An integer literal with the long literal mark has type kotlin.Long; an integer literal without it has one of the types kotlin.Int/kotlin.Short/kotlin.Byte (the selected type is dependent on the context), if its value is in range of the corresponding type, or type kotlin.Long otherwise.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Type checking of various integer literals with long literal mark.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, long-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] An integer literal with the long literal mark has type kotlin.Long; an integer literal without it has one of the types kotlin.Int/kotlin.Short/kotlin.Byte (the selected type is dependent on the context), if its value is in range of the corresponding type, or type kotlin.Long otherwise.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Type checking of decimal integer literals.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, long-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] An integer literal with the long literal mark has type kotlin.Long; an integer literal without it has one of the types kotlin.Int/kotlin.Short/kotlin.Byte (the selected type is dependent on the context), if its value is in range of the corresponding type, or type kotlin.Long otherwise.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: Type checking of hexadecimal integer literals.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, long-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] An integer literal with the long literal mark has type kotlin.Long; an integer literal without it has one of the types kotlin.Int/kotlin.Short/kotlin.Byte (the selected type is dependent on the context), if its value is in range of the corresponding type, or type kotlin.Long otherwise.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 4
|
||||
* DESCRIPTION: Type checking of binary integer literals.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, integer-literals, long-integer-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [2] An integer literal with the long literal mark has type kotlin.Long; an integer literal without it has one of the types kotlin.Int/kotlin.Short/kotlin.Byte (the selected type is dependent on the context), if its value is in range of the corresponding type, or type kotlin.Long otherwise.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 5
|
||||
* DESCRIPTION: Check of integer type selection depends on the context.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [1] A real literal consists of the following parts: the whole-number part, the decimal point (ASCII period character .), the fraction part and the exponent.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 1 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Real literals separeted by comments.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [3] A real literal may also be followed by a type suffix (f or F).
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 1 -> sentence 3
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Real literals suffixed by f/F (float suffix) separeted by comments.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [1] A real literal consists of the following parts: the whole-number part, the decimal point (ASCII period character .), the fraction part and the exponent.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 1 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Simple real literals with a different whole-number part and fraction part.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [1] A real literal consists of the following parts: the whole-number part, the decimal point (ASCII period character .), the fraction part and the exponent.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 1 -> sentence 1
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Real literals with a many digits in a whole-number part and a fraction part (including conforms).
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [3] A real literal may also be followed by a type suffix (f or F).
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 1 -> sentence 3
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Simple real literals suffixed by f/F (the float suffix) with a different whole-number part and fraction part.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 1
|
||||
* SENTENCE: [3] A real literal may also be followed by a type suffix (f or F).
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 1 -> sentence 3
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Real literals suffixed by f/F (the float suffix) with a many digits in a whole-number part and a fraction part (including conforms).
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 2
|
||||
* SENTENCE: [1] The exponent is an exponent mark (e or E) followed by an optionaly signed decimal integer (a sequence of decimal digits).
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 2 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Real literals without digits after an exponent mark.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 2
|
||||
* SENTENCE: [1] The exponent is an exponent mark (e or E) followed by an optionaly signed decimal integer (a sequence of decimal digits).
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 2 -> sentence 1
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Real literals with a not allowed exponent mark at the beginning.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 2
|
||||
* SENTENCE: [1] The exponent is an exponent mark (e or E) followed by an optionaly signed decimal integer (a sequence of decimal digits).
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 2 -> sentence 1
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with a not allowed exponent mark at the beginning.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 2
|
||||
* SENTENCE: [1] The exponent is an exponent mark (e or E) followed by an optionaly signed decimal integer (a sequence of decimal digits).
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 2 -> sentence 1
|
||||
* NUMBER: 4
|
||||
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with an exponent mark without digits after it.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 2
|
||||
* SENTENCE: [1] The exponent is an exponent mark (e or E) followed by an optionaly signed decimal integer (a sequence of decimal digits).
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 2 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Simple real literals with an exponent mark.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 2
|
||||
* SENTENCE: [1] The exponent is an exponent mark (e or E) followed by an optionaly signed decimal integer (a sequence of decimal digits).
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 2 -> sentence 1
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with an exponent mark.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [1] The whole-number part and the exponent part may be omitted.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 3 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Real literals with omitted a whole-number part and an exponent mark without digits after it.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [1] The whole-number part and the exponent part may be omitted.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 3 -> sentence 1
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Real literals with omitted a whole-number part, suffixed by f/F (float suffix) followed by an exponent mark without digits.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [2] The fraction part may be omitted only together with the decimal point, if the whole-number part and either the exponent part or the type suffix are present.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 3 -> sentence 2
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Real literals with omitted a fraction part and an exponent mark without digits after it.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [1] The whole-number part and the exponent part may be omitted.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 3 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Simple real literals with omitted a whole-number part.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [1] The whole-number part and the exponent part may be omitted.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 3 -> sentence 1
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Real literals with omitted a whole-number part and an exponent mark.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [1] The whole-number part and the exponent part may be omitted.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 3 -> sentence 1
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: Real literals separeted by comments with omitted a whole-number part.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [1] The whole-number part and the exponent part may be omitted.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 3 -> sentence 1
|
||||
* NUMBER: 4
|
||||
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with omitted a whole-number part.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [1] The whole-number part and the exponent part may be omitted.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 3 -> sentence 1
|
||||
* NUMBER: 5
|
||||
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with omitted a whole-number part and an exponent mark.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [2] The fraction part may be omitted only together with the decimal point, if the whole-number part and either the exponent part or the type suffix are present.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 3 -> sentence 2
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Simple real literals with omitted a fraction part, suffixed by f/F (float suffix).
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [2] The fraction part may be omitted only together with the decimal point, if the whole-number part and either the exponent part or the type suffix are present.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 3 -> sentence 2
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Real literals with omitted a fraction part and an exponent mark.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [2] The fraction part may be omitted only together with the decimal point, if the whole-number part and either the exponent part or the type suffix are present.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 3 -> sentence 2
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: Real literals with omitted a fraction part and an exponent mark, suffixed by f/F (float suffix).
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 4
|
||||
* SENTENCE: [1] The digits of the whole-number part or the fraction part or the exponent may be optionally separated by underscores, but an underscore may not be placed between, before, or after these parts.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 4 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Real literals without digits after an exponent mark and with undescores in the different pisitions.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 4
|
||||
* SENTENCE: [1] The digits of the whole-number part or the fraction part or the exponent may be optionally separated by underscores, but an underscore may not be placed between, before, or after these parts.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 4 -> sentence 1
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Real literals with underscores at the end.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 4
|
||||
* SENTENCE: [2] It also may not be placed before or after the exponent mark symbol.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 4 -> sentence 2
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Real literals with underscores before an exponent mark.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 4
|
||||
* SENTENCE: [2] It also may not be placed before or after the exponent mark symbol.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 4 -> sentence 2
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Real literals with underscores after an exponent mark.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 4
|
||||
* SENTENCE: [2] It also may not be placed before or after the exponent mark symbol.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 4 -> sentence 2
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: Real literals with underscores around an exponent mark.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 4
|
||||
* SENTENCE: [1] The digits of the whole-number part or the fraction part or the exponent may be optionally separated by underscores, but an underscore may not be placed between, before, or after these parts.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 4 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Real literals with underscores in a whole-number part and a fraction part.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 4
|
||||
* SENTENCE: [1] The digits of the whole-number part or the fraction part or the exponent may be optionally separated by underscores, but an underscore may not be placed between, before, or after these parts.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 4 -> sentence 1
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with underscores in a whole-number part and a fraction part.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 4
|
||||
* SENTENCE: [1] The digits of the whole-number part or the fraction part or the exponent may be optionally separated by underscores, but an underscore may not be placed between, before, or after these parts.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 4 -> sentence 1
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with an exponent mark and underscores in a whole-number part, a fraction part and an exponent part.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 4
|
||||
* SENTENCE: [1] The digits of the whole-number part or the fraction part or the exponent may be optionally separated by underscores, but an underscore may not be placed between, before, or after these parts.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 4 -> sentence 1
|
||||
* NUMBER: 4
|
||||
* DESCRIPTION: Real literals with an omitted whole-number part and underscores in a whole-number part, a fraction part and an exponent part.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 4
|
||||
* SENTENCE: [1] The digits of the whole-number part or the fraction part or the exponent may be optionally separated by underscores, but an underscore may not be placed between, before, or after these parts.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 4 -> sentence 1
|
||||
* NUMBER: 5
|
||||
* DESCRIPTION: Real literals with an omitted fraction part and underscores in a whole-number part, a fraction part and an exponent part.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 5
|
||||
* SENTENCE: [1] A real literal without the type suffix has type kotlin.Double, a real literal with the type suffix has type kotlin.Float.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 5 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: A type checking of a simple real literal (with/without underscores).
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 5
|
||||
* SENTENCE: [1] A real literal without the type suffix has type kotlin.Double, a real literal with the type suffix has type kotlin.Float.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 5 -> sentence 1
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: A type checking of a real literal with an exponent mark.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 5
|
||||
* SENTENCE: [1] A real literal without the type suffix has type kotlin.Double, a real literal with the type suffix has type kotlin.Float.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 5 -> sentence 1
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: A type checking of a real literal with omitted a whole-number part.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 5
|
||||
* SENTENCE: [1] A real literal without the type suffix has type kotlin.Double, a real literal with the type suffix has type kotlin.Float.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 5 -> sentence 1
|
||||
* NUMBER: 4
|
||||
* DESCRIPTION: A type checking of a real literal with omitted a whole-number part and an exponent mark.
|
||||
*/
|
||||
|
||||
Vendored
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: constant-literals, real-literals
|
||||
* PARAGRAPH: 5
|
||||
* SENTENCE: [1] A real literal without the type suffix has type kotlin.Double, a real literal with the type suffix has type kotlin.Float.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: constant-literals, real-literals -> paragraph 5 -> sentence 1
|
||||
* NUMBER: 5
|
||||
* DESCRIPTION: A type checking of a real literal with omitted a fraction part and an exponent mark.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [1] It has an else entry;
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Checking for not exhaustive when without bound value when there is no else branch.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [1] It has an else entry;
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 1
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Checking for not exhaustive when with bound value when there is no else branch.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [3] The bound expression is of type kotlin.Boolean and the conditions contain both:
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 3
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Checking for not exhaustive 'when' when not contains by all Boolean values or 'when' does not have bound value.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [6] The bound expression is of a sealed class type and all its possible subtypes are covered using type test conditions of this expression;
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 6
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Checking for not exhaustive 'when' when not covered by all possible subtypes or 'when' does not have bound value.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [7] The bound expression is of an Enum classes type and all enumerated values are checked for equality using constant conditions;
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 7
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Checking for not exhaustive when when not covered by all enumerated values.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [8] The bound expression is of a nullable type and one of the areas above is met for its non-nullable counterpart and, in addition, there is a condition containing literal null.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 8
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Checking for not exhaustive 'when' on the nullable Boolean.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [8] The bound expression is of a nullable type and one of the areas above is met for its non-nullable counterpart and, in addition, there is a condition containing literal null.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 8
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Checking for not exhaustive 'when' on the nullable sealed classes (and several checks for not sealed).
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [8] The bound expression is of a nullable type and one of the areas above is met for its non-nullable counterpart and, in addition, there is a condition containing literal null.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 8
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: Checking for not exhaustive 'when' on the nullable enums.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [1] It has an else entry;
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Check when exhaustive via else entry (when without bound value).
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [1] It has an else entry;
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 1
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Check when exhaustive via else entry (when with bound value).
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [1] It has an else entry;
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 1
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: Check when exhaustive via else entry (when with bound value, redundant else).
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [3] The bound expression is of type kotlin.Boolean and the conditions contain both:
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 3
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Check when exhaustive via boolean bound value and evaluating to value true and false.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [6] The bound valueession is of a sealed class type and all its possible subtypes are covered using type test conditions of this valueession;
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 6
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Check when exhaustive when possible subtypes of the sealed class are covered.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [7] The bound expression is of an Enum classes type and all enumerated values are checked for equality using constant conditions;
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 7
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Check when exhaustive when all enumerated values are checked.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [8] The bound expression is of a nullable type and one of the areas above is met for its non-nullable counterpart and, in addition, there is a condition containing literal null.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 8
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Check when exhaustive when boolean values are checked and contains a null check.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [8] The bound expression is of a nullable type and one of the cases above is met for its non-nullable counterpart and, in addition, there is a condition containing literal null.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 8
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Check when exhaustive when enumerated values are checked and contains a null check.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 11
|
||||
* SENTENCE: [8] The bound expression is of a nullable type and one of the areas above is met for its non-nullable counterpart and, in addition, there is a condition containing literal null.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 11 -> sentence 8
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: Check when exhaustive when possible subtypes of the sealed class are covered and contains a null check.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 2
|
||||
* SENTENCE: [3] When expression has two different forms: with bound value and without it.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 2 -> sentence 3
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: Empty 'when' with bound value.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 2
|
||||
* SENTENCE: [3] When expression has two different forms: with bound value and without it.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 2 -> sentence 3
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: Empty 'when' without bound value.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [1] When expression without bound value (the form where the expression enclosed in parantheses is absent) evaluates one of the many different expressions based on corresponding conditions present in the same when entry.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 3 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: 'When' without bound value and not allowed break and continue expression (without labels) in the control structure body.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [2] Each entry consists of a boolean condition (or a special else condition), each of which is checked and evaluated in order of appearance.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 3 -> sentence 2
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: 'When' without bound value and with not boolean condition in 'when condition'.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [2] Each entry consists of a boolean condition (or a special else condition), each of which is checked and evaluated in order of appearance.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 3 -> sentence 2
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: 'When' without bound value and not allowed comma in when entry.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -6,9 +6,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [1] When expression without bound value (the form where the expression enclosed in parantheses is absent) evaluates one of the many different expressions based on corresponding conditions present in the same when entry.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 3 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: 'When' without bound value and with different variants of expressions in the control structure body.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -5,9 +5,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [2] Each entry consists of a boolean condition (or a special else condition), each of which is checked and evaluated in order of appearance.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 3 -> sentence 2
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: 'When' without bound value and different variants of the boolean conditions (logical, equality, comparison, type checking operator, containment operator).
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [2] Each entry consists of a boolean condition (or a special else condition), each of which is checked and evaluated in order of appearance.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 3 -> sentence 2
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: 'When' without bound value and only one 'else' branch.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 3
|
||||
* SENTENCE: [2] Each entry consists of a boolean condition (or a special else condition), each of which is checked and evaluated in order of appearance.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 3 -> sentence 2
|
||||
* NUMBER: 3
|
||||
* DESCRIPTION: 'When' without bound value and with Nothing in condition (subtype of Boolean).
|
||||
* DISCUSSION
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 5
|
||||
* SENTENCE: [1] The else entry is also special in the sense that it must be the last entry in the expression, otherwise a compiler error must be generated.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 5 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: 'When' without bound value and with 'else' branch not in the last position.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 5
|
||||
* SENTENCE: [1] The else entry is also special in the sense that it must be the last entry in the expression, otherwise a compiler error must be generated.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 5 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: 'When' without bound value and with else branch in the last position.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 6
|
||||
* SENTENCE: [1] When expression with bound value (the form where the expression enclosed in parantheses is present) are very similar to the form without bound value, but use different syntax for conditions.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 6 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: 'When' with bound value and not allowed break and continue expression (without labels) in the control structure body.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -6,9 +6,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 6
|
||||
* SENTENCE: [1] When expression with bound value (the form where the expression enclosed in parantheses is present) are very similar to the form without bound value, but use different syntax for conditions.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 6 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: 'When' with bound value and with different variants of expressions in the control structure body.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 7
|
||||
* SENTENCE: [1] Type test condition: type checking operator followed by type.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 7 -> sentence 1
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: 'When' with bound value and type test condition (without companion object in classes), but without type checking operator.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 7
|
||||
* SENTENCE: [1] Type test condition: type checking operator followed by type.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 7 -> sentence 1
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: 'When' with bound value and type test condition on the non-type operand of the type checking operator.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 7
|
||||
* SENTENCE: [3] Contains test condition: containment operator followed by an expression.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 7 -> sentence 3
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: 'When' with bound value and 'when condition' with range expression, but without containment checking operator.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -4,9 +4,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 7
|
||||
* SENTENCE: [3] Contains test condition: containment operator followed by an expression.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 7 -> sentence 3
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: 'When' with bound value and 'when condition' with contains operator and type without defined contains operator.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 7
|
||||
* SENTENCE: [5] Any other expression.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 7 -> sentence 5
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: 'When' with bound value and non-expressions in 'when condition'.
|
||||
*/
|
||||
|
||||
+2
-3
@@ -1,9 +1,8 @@
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: when-expression
|
||||
* PARAGRAPH: 7
|
||||
* SENTENCE: [5] Any other expression.
|
||||
* SPEC VERSION: 0.1-draft
|
||||
* PLACE: when-expression -> paragraph 7 -> sentence 5
|
||||
* NUMBER: 2
|
||||
* DESCRIPTION: 'When' with bound value and not allowed break and continue expression (without labels) in 'when condition'.
|
||||
*/
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user