AA: add tests about wildcard suppress
^KT-61734
This commit is contained in:
+12
@@ -128,4 +128,16 @@ public class Fe10IdeNormalAnalysisSourceModuleAnalysisApiPsiTypeProviderTestGene
|
|||||||
public void testSuspendFunctionValueParameterWithStdlib() {
|
public void testSuspendFunctionValueParameterWithStdlib() {
|
||||||
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/suspendFunctionValueParameterWithStdlib.kt");
|
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/suspendFunctionValueParameterWithStdlib.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("wildcardSuppression_false.kt")
|
||||||
|
public void testWildcardSuppression_false() {
|
||||||
|
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/wildcardSuppression_false.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("wildcardSuppression_true.kt")
|
||||||
|
public void testWildcardSuppression_true() {
|
||||||
|
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/wildcardSuppression_true.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+12
@@ -128,4 +128,16 @@ public class FirIdeDependentAnalysisSourceModuleAnalysisApiPsiTypeProviderTestGe
|
|||||||
public void testSuspendFunctionValueParameterWithStdlib() {
|
public void testSuspendFunctionValueParameterWithStdlib() {
|
||||||
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/suspendFunctionValueParameterWithStdlib.kt");
|
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/suspendFunctionValueParameterWithStdlib.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("wildcardSuppression_false.kt")
|
||||||
|
public void testWildcardSuppression_false() {
|
||||||
|
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/wildcardSuppression_false.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("wildcardSuppression_true.kt")
|
||||||
|
public void testWildcardSuppression_true() {
|
||||||
|
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/wildcardSuppression_true.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+12
@@ -128,4 +128,16 @@ public class FirIdeNormalAnalysisSourceModuleAnalysisApiPsiTypeProviderTestGener
|
|||||||
public void testSuspendFunctionValueParameterWithStdlib() {
|
public void testSuspendFunctionValueParameterWithStdlib() {
|
||||||
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/suspendFunctionValueParameterWithStdlib.kt");
|
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/suspendFunctionValueParameterWithStdlib.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("wildcardSuppression_false.kt")
|
||||||
|
public void testWildcardSuppression_false() {
|
||||||
|
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/wildcardSuppression_false.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("wildcardSuppression_true.kt")
|
||||||
|
public void testWildcardSuppression_true() {
|
||||||
|
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/wildcardSuppression_true.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+12
@@ -128,4 +128,16 @@ public class FirStandaloneNormalAnalysisSourceModuleAnalysisApiPsiTypeProviderTe
|
|||||||
public void testSuspendFunctionValueParameterWithStdlib() {
|
public void testSuspendFunctionValueParameterWithStdlib() {
|
||||||
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/suspendFunctionValueParameterWithStdlib.kt");
|
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/suspendFunctionValueParameterWithStdlib.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("wildcardSuppression_false.kt")
|
||||||
|
public void testWildcardSuppression_false() {
|
||||||
|
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/wildcardSuppression_false.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("wildcardSuppression_true.kt")
|
||||||
|
public void testWildcardSuppression_true() {
|
||||||
|
runTest("analysis/analysis-api/testData/components/psiTypeProvider/psiType/forDeclaration/wildcardSuppression_true.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
interface NavGraphBuilder
|
||||||
|
|
||||||
|
interface AnimatedContentTransitionScope<S>
|
||||||
|
|
||||||
|
interface NavBackStackEntry
|
||||||
|
|
||||||
|
interface EnterTransition
|
||||||
|
|
||||||
|
fun NavGraphBuilder.compose(
|
||||||
|
enter<caret>Transition: (@JvmSuppressWildcards(suppress = false)
|
||||||
|
AnimatedContentTransitionScope<NavBackStackEntry>.() -> EnterTransition?)? = null,
|
||||||
|
) = TODO()
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
KtType: @kotlin.jvm.JvmSuppressWildcards(suppress = false) (AnimatedContentTransitionScope<NavBackStackEntry>.() -> EnterTransition?)?
|
||||||
|
PsiType: PsiType:Function1<? super AnimatedContentTransitionScope<NavBackStackEntry>, ? extends EnterTransition>
|
||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
interface NavGraphBuilder
|
||||||
|
|
||||||
|
interface AnimatedContentTransitionScope<S>
|
||||||
|
|
||||||
|
interface NavBackStackEntry
|
||||||
|
|
||||||
|
interface EnterTransition
|
||||||
|
|
||||||
|
fun NavGraphBuilder.compose(
|
||||||
|
enter<caret>Transition: (@JvmSuppressWildcards(suppress = true)
|
||||||
|
AnimatedContentTransitionScope<NavBackStackEntry>.() -> EnterTransition?)? = null,
|
||||||
|
) = TODO()
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
KtType: @kotlin.jvm.JvmSuppressWildcards(suppress = true) (AnimatedContentTransitionScope<NavBackStackEntry>.() -> EnterTransition?)?
|
||||||
|
PsiType: PsiType:Function1<? super AnimatedContentTransitionScope<NavBackStackEntry>, ? extends EnterTransition>
|
||||||
Reference in New Issue
Block a user