4 references to HasImplicitConversionToOrImplementsVarianceCompatibleInterface
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Expressions.cs (1)
6258var result = Conversions.HasImplicitConversionToOrImplementsVarianceCompatibleInterface(initializerType, collectionsIEnumerableType, ref useSiteInfo, out bool needSupportForRefStructInterfaces);
Binder\ForEachLoopBinder.cs (1)
1261bool result = this.Conversions.HasImplicitConversionToOrImplementsVarianceCompatibleInterface(enumeratorType,
Binder\UsingStatementBinder.cs (1)
284result = conversions.HasImplicitConversionToOrImplementsVarianceCompatibleInterface(declarationTypeOpt, targetInterface, ref useSiteInfo, out needSupportForRefStructInterfaces);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
341implementsInterface = conversions.HasImplicitConversionToOrImplementsVarianceCompatibleInterface(enumeratorType, idisposableTypeSymbol, ref useSiteInfo, out _);