From 372f18e8befffe3f4f1ccb3c21aeaf41af2aa763 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Fri, 7 Dec 2018 13:55:53 -0500 Subject: [PATCH] Factor new AsyncIteratorStateMachineAttribute into TryResolveStateMachineMethod (#21396) --- src/System.Private.CoreLib/src/System/Diagnostics/Stacktrace.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Private.CoreLib/src/System/Diagnostics/Stacktrace.cs b/src/System.Private.CoreLib/src/System/Diagnostics/Stacktrace.cs index 1679531..d173d58 100644 --- a/src/System.Private.CoreLib/src/System/Diagnostics/Stacktrace.cs +++ b/src/System.Private.CoreLib/src/System/Diagnostics/Stacktrace.cs @@ -514,7 +514,7 @@ namespace System.Diagnostics if (asma.StateMachineType == declaringType) { foundAttribute = true; - foundIteratorAttribute |= asma is IteratorStateMachineAttribute; + foundIteratorAttribute |= asma is IteratorStateMachineAttribute || asma is AsyncIteratorStateMachineAttribute; } } -- 2.7.4