Allow using extensions with trivial-constraints in builder-inference

#KT-27079 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2018-09-24 11:35:15 +03:00
parent 0da1b9b80f
commit 0d103e7f0c
9 changed files with 301 additions and 14 deletions
@@ -1747,6 +1747,21 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionSuspend.kt");
}
@TestMetadata("extensionWithNonValuableConstraints.kt")
public void testExtensionWithNonValuableConstraints() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.kt");
}
@TestMetadata("extensionsWithNonValuableConstraintsGenericBase.kt")
public void testExtensionsWithNonValuableConstraintsGenericBase() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.kt");
}
@TestMetadata("extensionsWithNonValuableConstraints_1_2.kt")
public void testExtensionsWithNonValuableConstraints_1_2() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraints_1_2.kt");
}
@TestMetadata("incorrectCalls.kt")
public void testIncorrectCalls() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/incorrectCalls.kt");