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

csi defaults to C#7 #21327

Closed
marek-safar opened this issue Aug 4, 2017 · 4 comments
Closed

csi defaults to C#7 #21327

marek-safar opened this issue Aug 4, 2017 · 4 comments
Assignees
Labels
Area-Compilers Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented
Milestone

Comments

@marek-safar
Copy link
Contributor

Version Used: 2.3.1.61919

Steps to Reproduce:

run csi.exe

Microsoft (R) Visual C# Interactive Compiler version 2.3.1.61919
Copyright (C) Microsoft Corporation. All rights reserved.

Type "#help" for more information.
> int i = default;
(1,9): error CS8107: Feature 'default literal' is not available in C# 7. Please use language version 7.1 or greater.

Expected Behavior:

Default to latest C# or allow to set it

Actual Behavior:

No C# 7.1 features in csi.exe

@jcouv jcouv self-assigned this Aug 4, 2017
@jcouv
Copy link
Member

jcouv commented Aug 4, 2017

@marek-safar Thanks for pointing this out. I'll look into it.

@jcouv jcouv added this to the 15.5 milestone Aug 4, 2017
@jcouv jcouv added the 4 - In Review A fix for the issue is submitted for review. label Aug 5, 2017
@xCyborg
Copy link

xCyborg commented Nov 14, 2017

Any updates on this? I still can't find how to use the latest language features in csi or C# interactive.

@jcouv
Copy link
Member

jcouv commented Nov 14, 2017

This was fixed in 15.5 (not sure exactly which preview) which is why I closed the issue.
PR: #21331

@jcouv jcouv added Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented and removed 4 - In Review A fix for the issue is submitted for review. labels Nov 14, 2017
@jcouv
Copy link
Member

jcouv commented Nov 14, 2017

Verified this works:

>csi
Microsoft (R) Visual C# Interactive Compiler version 2.6.0.62308
Copyright (C) Microsoft Corporation. All rights reserved.

Type "#help" for more information.
> int i = default;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented
Projects
None yet
Development

No branches or pull requests

3 participants