Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrectly demystifying used functions #163

Open
kirides opened this issue Jun 4, 2021 · 0 comments
Open

incorrectly demystifying used functions #163

kirides opened this issue Jun 4, 2021 · 0 comments

Comments

@kirides
Copy link

kirides commented Jun 4, 2021

System.Exception: OH NO: hello world
   at async Task demo.Program.Main()+(?) => { } in demo/Program.cs:line 22
   at async Task demo.Program.HandleOnSyncCtxAsync<T>(Action<T> handler, T state)+(?) => { } in demo/Program.cs:line 57
   at async Task demo.SynchronizationContextExtensions.PostAsync<T>(SynchronizationContext ctx, Action<T> d, T state)+(?) => { } in demo/Program.cs:line 101
   at async Task demo.SynchronizationContextExtensions.PostAsync<T>(SynchronizationContext ctx, Func<T, Task> d, T state) in demo/Program.rogram.cs:line 101cs:line 110                                                                                                                                                             cs:line 110
   at async Task demo.Program.HandleOnSyncCtxAsync<T>(Func<T, Task> handler, T state) in demo/Program.cs:line 55
   at async Task demo.Program.Main() in demo/Program.cs:line 20

i expected line 4 in the exception (at async Task demo.SynchronizationContextExtensions.PostAsync<T>(SynchronizationContext ctx, Action<T> d, T state)+(?) => { } in demo/Program.cs:line 101 )
to be the same method as line 5, as that is where the await happens. (the line number correctly indicates that)

Demo project:
demo.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant