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

Roslyn tries to call FailFast from bad expression in Immediate Window #31301

Open
AArnott opened this issue Nov 21, 2018 · 1 comment
Open

Roslyn tries to call FailFast from bad expression in Immediate Window #31301

AArnott opened this issue Nov 21, 2018 · 1 comment

Comments

@AArnott
Copy link
Contributor

AArnott commented Nov 21, 2018

Version Used: 15.9.2 Preview 1.0 (28307.108.d15.9)

Steps to Reproduce:

  1. While stepping in a C# program, type this into the VS Immediate Window and hit enter:
(bool)(object)null

Expected Behavior:

Some error about null not being convertible to bool.

Actual Behavior:

Evaluation of method <Unknown Method>() calls into native method System.Environment.FailFast(). Evaluation of native methods in this context is not supported.
@jinujoseph
Copy link
Contributor

cc @tmat

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

No branches or pull requests

3 participants