Allow generic type parameter to have mixed constraints for @InlineOnly functions

#KT-19323 Fixed
This commit is contained in:
Stanislav Erokhin
2018-08-20 11:03:52 +03:00
parent 7d4dfc87b1
commit f3e0470dcd
7 changed files with 51 additions and 2 deletions
@@ -10289,6 +10289,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/inference/upperBounds/nonNullUpperBound.kt");
}
@TestMetadata("typeParameterAsUpperBound.kt")
public void testTypeParameterAsUpperBound() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/upperBounds/typeParameterAsUpperBound.kt");
}
@TestMetadata("useBoundsIfUnknownParameters.kt")
public void testUseBoundsIfUnknownParameters() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsIfUnknownParameters.kt");