Alphabetical sort wrapped intersection types for rendered diagnostics

This commit is contained in:
victor.petukhov
2018-12-28 15:34:42 +03:00
parent acd6d354dc
commit ec8a6cbe9c
118 changed files with 1387 additions and 937 deletions
@@ -1,5 +1,4 @@
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
// !WITH_CONTRACT_FUNCTIONS
// SKIP_TXT
/*
@@ -8,6 +7,7 @@
* SECTIONS: contracts, analysis, smartcasts
* NUMBER: 1
* DESCRIPTION: Smartcasts using Returns effects with simple type checking, not-null conditions and custom condition (condition for smartcast outside contract).
* HELPERS: contractFunctions
*/
// TESTCASE NUMBER: 1
@@ -1,5 +1,4 @@
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
// !WITH_CONTRACT_FUNCTIONS
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
@@ -8,6 +7,7 @@
* NUMBER: 10
* DESCRIPTION: Check smartcasts using double negation (returnsFalse/invert type checking/not operator).
* ISSUES: KT-26176
* HELPERS: contractFunctions
*/
// FILE: contracts.kt
@@ -1,4 +1,3 @@
// !WITH_CONTRACT_FUNCTIONS
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
/*
@@ -7,6 +6,7 @@
* SECTIONS: contracts, analysis, smartcasts
* NUMBER: 11
* DESCRIPTION: Smartcast using many of the various Returns effects on the same values.
* HELPERS: contractFunctions
*/
// FILE: contracts.kt
@@ -1,5 +1,4 @@
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
// !WITH_CONTRACT_FUNCTIONS
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
@@ -7,6 +6,7 @@
* SECTIONS: contracts, analysis, smartcasts
* NUMBER: 13
* DESCRIPTION: Smartcast using many of the various Returns effects on the same values.
* HELPERS: contractFunctions
*/
// FILE: contracts.kt
@@ -1,4 +1,3 @@
// !WITH_CONTRACT_FUNCTIONS
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
/*
@@ -7,6 +6,7 @@
* SECTIONS: contracts, analysis, smartcasts
* NUMBER: 14
* DESCRIPTION: Smartcast using many of the various Returns effects on the same values.
* HELPERS: contractFunctions
*/
// FILE: contracts.kt
@@ -1,4 +1,3 @@
// !WITH_CONTRACT_FUNCTIONS
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
/*
@@ -8,6 +7,7 @@
* NUMBER: 15
* DESCRIPTION: Check smartcasts working if type checking for contract function is used
* ISSUES: KT-27241
* HELPERS: contractFunctions
*/
// FILE: contracts.kt
@@ -1,5 +1,4 @@
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
// !WITH_CONTRACT_FUNCTIONS
// SKIP_TXT
/*
@@ -8,6 +7,7 @@
* SECTIONS: contracts, analysis, smartcasts
* NUMBER: 2
* DESCRIPTION: Smartcasts using Returns effects with complex (conjunction/disjunction) type checking and not-null conditions outside contract (custom condition).
* HELPERS: contractFunctions
*/
// TESTCASE NUMBER: 1
@@ -1,4 +1,3 @@
// !WITH_CONTRACT_FUNCTIONS
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
/*
@@ -7,6 +6,7 @@
* SECTIONS: contracts, analysis, smartcasts
* NUMBER: 8
* DESCRIPTION: Smartcasts using some Returns effects.
* HELPERS: contractFunctions
*/
// FILE: contracts.kt
@@ -1,5 +1,4 @@
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
// !WITH_CONTRACT_FUNCTIONS
// SKIP_TXT
/*
@@ -8,6 +7,7 @@
* SECTIONS: contracts, analysis, smartcasts
* NUMBER: 9
* DESCRIPTION: Check the lack of smartcasts after non-null assertions or not-null value assignment in lambdas of contract function with 'unknown' or 'at most once' CallsInPlace effects.
* HELPERS: contractFunctions
*/
// TESTCASE NUMBER: 1
@@ -1,5 +1,4 @@
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
// !WITH_CONTRACT_FUNCTIONS
// SKIP_TXT
/*
@@ -8,6 +7,7 @@
* SECTIONS: contracts, analysis, smartcasts
* NUMBER: 1
* DESCRIPTION: Smartcasts using Returns effects with simple type checking, not-null conditions and custom condition (condition for smartcast outside contract).
* HELPERS: contractFunctions
*/
// TESTCASE NUMBER: 1
@@ -1,4 +1,3 @@
// !WITH_CONTRACT_FUNCTIONS
// !DIAGNOSTICS: -UNUSED_PARAMETER
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
@@ -9,6 +8,7 @@
* NUMBER: 10
* DESCRIPTION: Smartcasts with correspond contract function with default value in last parameter.
* ISSUES: KT-26444
* HELPERS: contractFunctions
*/
// FILE: contracts.kt
@@ -1,5 +1,4 @@
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
// !WITH_CONTRACT_FUNCTIONS
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (POSITIVE)
@@ -8,6 +7,7 @@
* NUMBER: 11
* DESCRIPTION: Check smartcasts with passing same fields of instances of the same class in contract function with conjunction not-null condition.
* ISSUES: KT-26300
* HELPERS: contractFunctions
*/
// FILE: contracts.kt
@@ -1,5 +1,4 @@
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
// !WITH_CONTRACT_FUNCTIONS
// SKIP_TXT
/*
@@ -10,6 +9,7 @@
* DESCRIPTION: Smartcasts after non-null assertions or not-null value assignment in lambdas of contract function with 'exactly once' or 'at least once' CallsInPlace effects.
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-26148
* HELPERS: contractFunctions
*/
// TESTCASE NUMBER: 1
@@ -1,5 +1,4 @@
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
// !WITH_CONTRACT_FUNCTIONS
// SKIP_TXT
/*
@@ -8,6 +7,7 @@
* SECTIONS: contracts, analysis, smartcasts
* NUMBER: 2
* DESCRIPTION: Smartcasts using Returns effects with complex (conjunction/disjunction) type checking and not-null conditions outside contract (custom condition).
* HELPERS: contractFunctions
*/
// TESTCASE NUMBER: 1
@@ -1,4 +1,3 @@
// !WITH_CONTRACT_FUNCTIONS
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
/*
@@ -7,6 +6,7 @@
* SECTIONS: contracts, analysis, smartcasts
* NUMBER: 8
* DESCRIPTION: Smartcasts using some Returns effects.
* HELPERS: contractFunctions
*/
// FILE: contracts.kt
@@ -1,5 +1,3 @@
// !WITH_CONTRACT_FUNCTIONS
// !WITH_BASIC_TYPES
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
/*
@@ -8,6 +6,7 @@
* SECTIONS: contracts, analysis, smartcasts
* NUMBER: 9
* DESCRIPTION: Smartcast using complex condition with some contract functions (Returns effect).
* HELPERS: typesProvider, contractFunctions
*/
// FILE: contracts.kt
@@ -121,34 +121,34 @@ public inline fun funWithUnknownCallsInPlace(/*0*/ block: () -> kotlin.Unit): ko
CallsInPlace(block, UNKNOWN)
public fun getAny(): kotlin.Any
public fun getBoolean(/*0*/ arg: kotlin.Any = ...): kotlin.Boolean
public fun getByte(/*0*/ arg: kotlin.Any = ...): kotlin.Byte
public fun getChar(/*0*/ arg: kotlin.Any = ...): kotlin.Char
public fun getDouble(/*0*/ arg: kotlin.Any = ...): kotlin.Double
public fun getFloat(/*0*/ arg: kotlin.Any = ...): kotlin.Float
public fun getInt(/*0*/ arg: kotlin.Any = ...): kotlin.Int
public fun getList(): kotlin.collections.MutableList<kotlin.Int>
public fun getLong(/*0*/ arg: kotlin.Any = ...): kotlin.Long
public fun getBoolean(): kotlin.Boolean
public fun getByte(): kotlin.Byte
public fun getChar(): kotlin.Char
public fun getDouble(): kotlin.Double
public fun getFloat(): kotlin.Float
public fun getInt(): kotlin.Int
public fun getList(): kotlin.collections.List<kotlin.Int>
public fun getLong(): kotlin.Long
public fun getNothing(): kotlin.Nothing
public fun getShort(/*0*/ arg: kotlin.Any = ...): kotlin.Short
public fun getString(/*0*/ arg: kotlin.Any = ...): kotlin.String
public fun getShort(): kotlin.Short
public fun getString(): kotlin.String
public fun getUnit(): () -> kotlin.Unit
public final class _BasicTypesProvider {
public constructor _BasicTypesProvider()
public final class TypesProvider {
public constructor TypesProvider()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public final fun getAny(): kotlin.Any
public final fun getBoolean(/*0*/ arg: kotlin.Any = ...): kotlin.Boolean
public final fun getByte(/*0*/ arg: kotlin.Any = ...): kotlin.Byte
public final fun getChar(/*0*/ arg: kotlin.Any = ...): kotlin.Char
public final fun getDouble(/*0*/ arg: kotlin.Any = ...): kotlin.Double
public final fun getFloat(/*0*/ arg: kotlin.Any = ...): kotlin.Float
public final fun getInt(/*0*/ arg: kotlin.Any = ...): kotlin.Int
public final fun getList(): kotlin.collections.MutableList<kotlin.Int>
public final fun getLong(/*0*/ arg: kotlin.Any = ...): kotlin.Long
public final fun getBoolean(): kotlin.Boolean
public final fun getByte(): kotlin.Byte
public final fun getChar(): kotlin.Char
public final fun getDouble(): kotlin.Double
public final fun getFloat(): kotlin.Float
public final fun getInt(): kotlin.Int
public final fun getList(): kotlin.collections.List<kotlin.Int>
public final fun getLong(): kotlin.Long
public final fun getNothing(): kotlin.Nothing
public final fun getShort(/*0*/ arg: kotlin.Any = ...): kotlin.Short
public final fun getString(/*0*/ arg: kotlin.Any = ...): kotlin.String
public final fun getShort(): kotlin.Short
public final fun getString(): kotlin.String
public final fun getUnit(): () -> kotlin.Unit
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String