5 references to IsGenericTaskType
Microsoft.CodeAnalysis.CSharp (5)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
3269if (y.OriginalDefinition.IsGenericTaskType(Compilation)) 3482bool type1IsGenericTask = type1.OriginalDefinition.IsGenericTaskType(Compilation); 3483bool type2IsGenericTask = type2.OriginalDefinition.IsGenericTaskType(Compilation);
Compiler\MethodCompiler.cs (1)
241if (returnType.IsGenericTaskType(compilation) || returnType.IsNonGenericTaskType(compilation))
Symbols\MethodSymbolExtensions.cs (1)
171&& (method.HasAsyncMethodBuilderAttribute(builderArgument: out _) || method.ReturnType.IsGenericTaskType(compilation));