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

Pulling "default" literal feature into master branch #18717

Merged
merged 17 commits into from
Apr 15, 2017

Conversation

jcouv
Copy link
Member

@jcouv jcouv commented Apr 14, 2017

Customer scenario

Customers can now omit the type in default(T). The literal default will infer its type, just like null does, with the difference that default works both with struct and ref types.

Bugs this fixes:

This C# 7.1 language new feature implements https://github.com/dotnet/csharplang/blob/master/proposals/target-typed-default.md

Risk
Performance impact

Low. This is a small feature.

@MeiChin-Tsai for ask mode approval. This is a new feature. All the PRs to the feature branch had two reviews and we also went through the new test process with @cston (test plan #18595)
FYI @dotnet/roslyn-compiler

jcouv and others added 16 commits March 10, 2017 20:45
Conflicts:
	src/Compilers/CSharp/Portable/Binder/Semantics/Conversions/ConversionKind.cs
	src/Compilers/CSharp/Portable/Binder/Semantics/Conversions/ConversionKindExtensions.cs
	src/Compilers/CSharp/Portable/Errors/MessageID.cs
	src/Compilers/CSharp/Portable/Parser/LanguageParser.cs
	src/Compilers/CSharp/Portable/PublicAPI.Unshipped.txt
	src/Compilers/CSharp/Portable/Syntax/Syntax.xml
	src/Compilers/CSharp/Portable/Syntax/SyntaxKind.cs
	src/Compilers/CSharp/Test/Semantic/CSharpCompilerSemanticTest.csproj
	src/Compilers/CSharp/Test/Syntax/Parsing/ExpressionParsingTests.cs
	src/Test/Utilities/Desktop/TestResource.resx
	src/Test/Utilities/Shared/Traits/CompilerFeature.cs
dotnet#16425)

Conflicts:
	src/Compilers/CSharp/Portable/Binder/Binder_Expressions.cs
	src/Compilers/CSharp/Portable/Binder/Binder_Query.cs
	src/Compilers/CSharp/Portable/Compiler/MethodCompiler.cs
	src/Compilers/CSharp/Portable/Errors/ErrorCode.cs
…net#17205)

Conflicts:
	src/Compilers/CSharp/Portable/Binder/Binder_Conversions.cs
	src/Compilers/CSharp/Portable/Binder/Semantics/Conversions/ConversionKind.cs
	src/Compilers/CSharp/Portable/Binder/Semantics/Conversions/ConversionKindExtensions.cs
	src/Compilers/CSharp/Portable/CodeGen/EmitExpression.cs
Conflicts:
	src/Compilers/CSharp/Portable/CSharpResources.resx
	src/Compilers/CSharp/Portable/Errors/ErrorCode.cs
	src/Compilers/CSharp/Test/Syntax/Parsing/ExpressionParsingTests.cs
Conflicts:
	src/Compilers/CSharp/Portable/CSharpResources.resx
	src/Compilers/CSharp/Portable/Errors/ErrorCode.cs
Conflicts:
	src/Compilers/CSharp/Portable/PublicAPI.Unshipped.txt
@jcouv jcouv added this to the 15.3 milestone Apr 14, 2017
@jcouv jcouv self-assigned this Apr 14, 2017
Conflicts:
	src/Compilers/CSharp/Portable/CSharpResources.resx
@MeiChin-Tsai
Copy link

Approved as 15.3 planned feature.

@jcouv
Copy link
Member Author

jcouv commented Apr 14, 2017

@dotnet-bot test windows_debug_vs-integration_prtest please

@jcouv jcouv merged commit d0d07e5 into dotnet:master Apr 15, 2017
@jcouv jcouv deleted the default-mergemaster branch April 15, 2017 01:57
@cston cston mentioned this pull request Apr 28, 2017
49 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants