Do not allow inference of type arguments on the rhs if there's no information available

This commit is contained in:
Andrey Breslav
2013-09-12 21:13:11 +02:00
parent 5c86a5bd7c
commit a9134f8eff
20 changed files with 219 additions and 44 deletions
@@ -1201,6 +1201,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/cast/bare/AsNullable.kt");
}
@TestMetadata("AsNullableNotEnough.kt")
public void testAsNullableNotEnough() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/bare/AsNullableNotEnough.kt");
}
@TestMetadata("EitherAs.kt")
public void testEitherAs() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/bare/EitherAs.kt");
@@ -1231,11 +1236,31 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/cast/bare/ErrorsInSubstitution.kt");
}
@TestMetadata("FromErrorType.kt")
public void testFromErrorType() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/bare/FromErrorType.kt");
}
@TestMetadata("NullableAs.kt")
public void testNullableAs() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/bare/NullableAs.kt");
}
@TestMetadata("NullableAsNotEnough.kt")
public void testNullableAsNotEnough() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/bare/NullableAsNotEnough.kt");
}
@TestMetadata("NullableAsNullable.kt")
public void testNullableAsNullable() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/bare/NullableAsNullable.kt");
}
@TestMetadata("NullableAsNullableNotEnough.kt")
public void testNullableAsNullableNotEnough() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/bare/NullableAsNullableNotEnough.kt");
}
@TestMetadata("RedundantNullable.kt")
public void testRedundantNullable() throws Exception {
doTest("compiler/testData/diagnostics/tests/cast/bare/RedundantNullable.kt");