304 lines
12 KiB
JSON
Vendored
304 lines
12 KiB
JSON
Vendored
{
|
|
"1": {
|
|
"neg": {
|
|
"3": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 6,
|
|
"description": "try-expression has to start with a try body and continue with zero ore more catch blocks",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/3.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "main"
|
|
}
|
|
],
|
|
"2": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 6,
|
|
"description": "try-expression has to start with a try body and continue with zero ore more catch blocks",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/3.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "primary"
|
|
},
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 3,
|
|
"description": "try-expression has to start with a try body, catch blocks and finally block",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/4.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "primary"
|
|
},
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 2,
|
|
"description": "A valid try-expression must have at least one catch or finally block.",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/5.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "primary"
|
|
},
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 3,
|
|
"description": "try-expression has to start with a try body",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/1.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "primary"
|
|
}
|
|
],
|
|
"4": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 3,
|
|
"description": "try-expression has to start with a try body, catch blocks and finally block",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/4.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "main"
|
|
}
|
|
],
|
|
"5": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 2,
|
|
"description": "A valid try-expression must have at least one catch or finally block.",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/5.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "main"
|
|
}
|
|
],
|
|
"1": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 3,
|
|
"description": "try-expression has to start with a try body",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/1.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "main"
|
|
}
|
|
]
|
|
},
|
|
"pos": {
|
|
"3": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 2,
|
|
"description": "try-expression has to start with a try body and continue with zero ore more catch blocks",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/3.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "main"
|
|
},
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 5,
|
|
"description": "catch is a soft keyword",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/3.2.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "main"
|
|
}
|
|
],
|
|
"2": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 2,
|
|
"description": "try-expression has to start with a try body and continue with zero ore more catch blocks",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/3.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "primary"
|
|
},
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 2,
|
|
"description": "try-expression has to start with a try body, catch blocks and finally block",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/4.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "primary"
|
|
},
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 5,
|
|
"description": "finally is a soft keyword",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/4.2.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "primary"
|
|
},
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 5,
|
|
"description": "catch is a soft keyword",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/3.2.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "primary"
|
|
},
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 2,
|
|
"description": "try-expression has to start with a try body",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/1.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "primary"
|
|
}
|
|
],
|
|
"4": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 2,
|
|
"description": "try-expression has to start with a try body, catch blocks and finally block",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/4.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "main"
|
|
},
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 5,
|
|
"description": "finally is a soft keyword",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/4.2.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "main"
|
|
}
|
|
],
|
|
"1": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 2,
|
|
"description": "try-expression has to start with a try body",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/1.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "main"
|
|
}
|
|
],
|
|
"5": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 2,
|
|
"description": "try-expression has to start with a try body",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/1.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "primary"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"8": {
|
|
"neg": {
|
|
"1": [
|
|
{
|
|
"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",
|
|
"unexpectedBehaviour": true,
|
|
"linkType": "main"
|
|
}
|
|
]
|
|
},
|
|
"pos": {
|
|
"1": [
|
|
{
|
|
"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",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "main",
|
|
"helpers": "checkType"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"9": {
|
|
"neg": {
|
|
"1": [
|
|
{
|
|
"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",
|
|
"unexpectedBehaviour": true,
|
|
"linkType": "primary"
|
|
}
|
|
]
|
|
},
|
|
"pos": {
|
|
"1": [
|
|
{
|
|
"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",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "primary",
|
|
"helpers": "checkType"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"2": {
|
|
"pos": {
|
|
"2": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 1,
|
|
"description": "catch block is evaluated immediately after the exception is thrown and the exception itself is passed inside the catch block as the corresponding parameter.",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-2/pos/2.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "main"
|
|
}
|
|
],
|
|
"1": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 1,
|
|
"description": "catch block is evaluated immediately after the exception is thrown and the exception itself is passed inside the catch block as the corresponding parameter.",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-2/pos/2.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "primary"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"5": {
|
|
"pos": {
|
|
"2": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 1,
|
|
"description": "If an exception was thrown, but no catch block matched its type, the finally block is evaluated before propagating the exception up the call stack.",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-5/pos/2.1.kt",
|
|
"unexpectedBehaviour": true,
|
|
"linkType": "main"
|
|
}
|
|
],
|
|
"1": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 1,
|
|
"description": "If no exception is thrown during the evaluation of the try body, no catch blocks are executed, the finally block is evaluated after the try body, and the program execution continues as normal.",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-5/pos/1.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "main"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"4": {
|
|
"pos": {
|
|
"1": [
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 1,
|
|
"description": "If an exception was thrown, but no catch block matched its type, the finally block is evaluated before propagating the exception up the call stack.",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-5/pos/2.1.kt",
|
|
"unexpectedBehaviour": true,
|
|
"linkType": "primary"
|
|
},
|
|
{
|
|
"specVersion": "0.1-218",
|
|
"casesNumber": 1,
|
|
"description": "If no exception is thrown during the evaluation of the try body, no catch blocks are executed, the finally block is evaluated after the try body, and the program execution continues as normal.",
|
|
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-5/pos/1.1.kt",
|
|
"unexpectedBehaviour": false,
|
|
"linkType": "primary"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |