K2: Do not fix variables that has yet unprocessed constraints in forks
Otherwise, exception from org.jetbrains.kotlin.resolve.calls.inference.components.ConstraintInjector.TypeCheckerStateForConstraintInjector.fixedTypeVariable might happen during forks resolution The test data is extracted from intelliJ FP test ^KT-43296 Fixed
This commit is contained in:
committed by
Space Team
parent
b73acd7a3a
commit
ca12cfb90d
+18
@@ -0,0 +1,18 @@
|
||||
// SKIP_TXT
|
||||
// FIR_IDENTICAL
|
||||
// FULL_JDK
|
||||
// WITH_STDLIB
|
||||
// FILE: PyTokenTypes.java
|
||||
public class PyTokenTypes {
|
||||
public static final PyTokenTypes LT = new PyTokenTypes();
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
private val comparisonStrings = hashMapOf(
|
||||
PyTokenTypes.LT to "<",
|
||||
)
|
||||
|
||||
fun findComparisonNegationOperators(x: PyTokenTypes?): Pair<String, String>? {
|
||||
return comparisonStrings.getValue(x) to
|
||||
comparisonStrings.getValue(x)
|
||||
}
|
||||
Reference in New Issue
Block a user