[FIR] Add failing test for incorrect type calculation of implicit types

This commit is contained in:
Dmitriy Novozhilov
2020-10-14 17:32:09 +03:00
parent 23f1cc6b07
commit 0b51fd03e2
3 changed files with 15 additions and 0 deletions
@@ -0,0 +1,5 @@
fun <K> extract(x: Out<K>) = x.get()
class Out<out T>(val x: T) {
fun get() = x
}
@@ -208,6 +208,11 @@ public class FirDiagnosticsTestGenerated extends AbstractFirDiagnosticsTest {
runTest("compiler/fir/analysis-tests/testData/resolve/genericReceiverPropertyOverride.kt");
}
@TestMetadata("implicitTypeInFakeOverride.kt")
public void testImplicitTypeInFakeOverride() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/implicitTypeInFakeOverride.kt");
}
@TestMetadata("incorrectSuperCall.kt")
public void testIncorrectSuperCall() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/incorrectSuperCall.kt");
@@ -208,6 +208,11 @@ public class FirDiagnosticsWithLightTreeTestGenerated extends AbstractFirDiagnos
runTest("compiler/fir/analysis-tests/testData/resolve/genericReceiverPropertyOverride.kt");
}
@TestMetadata("implicitTypeInFakeOverride.kt")
public void testImplicitTypeInFakeOverride() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/implicitTypeInFakeOverride.kt");
}
@TestMetadata("incorrectSuperCall.kt")
public void testIncorrectSuperCall() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/incorrectSuperCall.kt");