diff --git a/src/Compilers/CSharp/Portable/Lowering/AsyncRewriter/AsyncIteratorMethodToStateMachineRewriter.cs b/src/Compilers/CSharp/Portable/Lowering/AsyncRewriter/AsyncIteratorMethodToStateMachineRewriter.cs index 6bb8cd8ca557f..77800ee3cce04 100644 --- a/src/Compilers/CSharp/Portable/Lowering/AsyncRewriter/AsyncIteratorMethodToStateMachineRewriter.cs +++ b/src/Compilers/CSharp/Portable/Lowering/AsyncRewriter/AsyncIteratorMethodToStateMachineRewriter.cs @@ -80,7 +80,7 @@ internal AsyncIteratorMethodToStateMachineRewriter(MethodSymbol method, { var asyncDispatch = base.GenerateMissingStateDispatch(); - var iteratorDispatch = _iteratorStateAllocator.GenerateThrowMissingStateDispatch(F, F.Local(cachedState), CodeAnalysisResources.EncCannotResumeSuspenededIteratorMethod); + var iteratorDispatch = _iteratorStateAllocator.GenerateThrowMissingStateDispatch(F, F.Local(cachedState), CodeAnalysisResources.EncCannotResumeSuspendedIteratorMethod); if (iteratorDispatch == null) { return asyncDispatch; diff --git a/src/Compilers/CSharp/Portable/Lowering/IteratorRewriter/IteratorMethodToStateMachineRewriter.cs b/src/Compilers/CSharp/Portable/Lowering/IteratorRewriter/IteratorMethodToStateMachineRewriter.cs index 16c01b8fece1f..4e4012ea696c0 100644 --- a/src/Compilers/CSharp/Portable/Lowering/IteratorRewriter/IteratorMethodToStateMachineRewriter.cs +++ b/src/Compilers/CSharp/Portable/Lowering/IteratorRewriter/IteratorMethodToStateMachineRewriter.cs @@ -75,7 +75,7 @@ internal IteratorMethodToStateMachineRewriter( } protected override string EncMissingStateMessage - => CodeAnalysisResources.EncCannotResumeSuspenededIteratorMethod; + => CodeAnalysisResources.EncCannotResumeSuspendedIteratorMethod; protected override int FirstIncreasingResumableState => StateMachineStates.FirstResumableIteratorState; diff --git a/src/Compilers/CSharp/Test/Emit/Emit/EditAndContinue/EditAndContinueStateMachineTests.cs b/src/Compilers/CSharp/Test/Emit/Emit/EditAndContinue/EditAndContinueStateMachineTests.cs index 95bab054f5e56..4cc7b5200c458 100644 --- a/src/Compilers/CSharp/Test/Emit/Emit/EditAndContinue/EditAndContinueStateMachineTests.cs +++ b/src/Compilers/CSharp/Test/Emit/Emit/EditAndContinue/EditAndContinueStateMachineTests.cs @@ -4118,7 +4118,7 @@ .locals init (int V_0) IL_0025: ldloc.0 IL_0026: ldc.i4.1 IL_0027: blt.s IL_0034 - IL_0029: ldstr """ + CodeAnalysisResources.EncCannotResumeSuspenededIteratorMethod + @""" + IL_0029: ldstr """ + CodeAnalysisResources.EncCannotResumeSuspendedIteratorMethod + @""" IL_002e: newobj ""System.InvalidOperationException..ctor(string)"" IL_0033: throw