5 references to IsGenericTaskType
Microsoft.CodeAnalysis.CSharp (5)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
3248if (y.OriginalDefinition.IsGenericTaskType(Compilation)) 3461bool type1IsGenericTask = type1.OriginalDefinition.IsGenericTaskType(Compilation); 3462bool 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));