107 references to ERR_FeatureNotAvailableInVersion7
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1672
case ErrorCode.
ERR_FeatureNotAvailableInVersion7
:
LanguageVersion.cs (1)
283
return ErrorCode.
ERR_FeatureNotAvailableInVersion7
;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
1703
ErrorCode.
ERR_FeatureNotAvailableInVersion7
,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
CodeGen\CodeGenAsyncMainTests.cs (8)
671
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Task").WithArguments("async main", "7.1").WithLocation(6, 18),
694
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Task").WithArguments("async main", "7.1").WithLocation(6, 12),
927
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Task<int>").WithArguments("async main", "7.1").WithLocation(6, 18),
949
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Task<int>").WithArguments("async main", "7.1").WithLocation(6, 12),
1011
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Task<int>").WithArguments("async main", "7.1").WithLocation(6, 18),
1033
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Task<int>").WithArguments("async main", "7.1").WithLocation(6, 12),
1282
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Task<int>").WithArguments("async main", "7.1").WithLocation(6, 18),
1313
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Task<int>").WithArguments("async main", "7.1").WithLocation(6, 12),
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptTests.cs (1)
955
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "default").
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (59)
Semantics\BindingAsyncTests.cs (1)
3482
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Task").WithArguments("async main", "7.1").WithLocation(5, 25),
Semantics\BindingTests.cs (1)
2189
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "M").WithArguments("default interface implementation", "8.0").WithLocation(3, 20),
Semantics\ImplicitObjectCreationTests.cs (1)
1843
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "new").WithArguments("target-typed object creation", "9.0").WithLocation(6, 15)
Semantics\NullableReferenceTypesTests.cs (34)
4130
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(6, 15),
7523
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(6, 24),
7529
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(7, 25),
7535
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(9, 25),
7541
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(14, 26),
7547
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(15, 27),
7553
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(17, 27),
7556
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(22, 21),
7559
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(23, 22),
7562
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(25, 22)
57298
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(10, 18),
57301
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(15, 20),
57304
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(20, 18),
57307
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(20, 21)
75547
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "?").WithArguments("nullable reference types", "8.0").WithLocation(3, 25),
75550
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "!").WithArguments("nullable reference types", "8.0").WithLocation(5, 15),
75553
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "!").WithArguments("nullable reference types", "8.0").WithLocation(6, 27),
75556
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "!").WithArguments("nullable reference types", "8.0").WithLocation(7, 26),
75559
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "!").WithArguments("nullable reference types", "8.0").WithLocation(8, 18),
75562
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "default").WithArguments("default literal", "7.1").WithLocation(8, 11),
75565
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "!").WithArguments("nullable reference types", "8.0").WithLocation(9, 12));
76983
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "!").WithArguments("nullable reference types", "8.0").WithLocation(5, 12),
76986
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "!").WithArguments("nullable reference types", "8.0").WithLocation(6, 23),
76989
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "!").WithArguments("nullable reference types", "8.0").WithLocation(7, 21),
76992
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "!").WithArguments("nullable reference types", "8.0").WithLocation(8, 29));
77074
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "!").WithArguments("nullable reference types", "8.0").WithLocation(6, 20),
77077
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "!").WithArguments("nullable reference types", "8.0").WithLocation(7, 17),
77080
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "!").WithArguments("nullable reference types", "8.0").WithLocation(8, 27));
78164
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "nullable").WithArguments("nullable reference types", "8.0").WithLocation(2, 2),
78167
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "nullable").WithArguments("nullable reference types", "8.0").WithLocation(9, 2),
78170
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "nullable").WithArguments("nullable reference types", "8.0").WithLocation(12, 2),
78173
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "nullable").WithArguments("nullable reference types", "8.0").WithLocation(15, 2),
78176
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "nullable").WithArguments("nullable reference types", "8.0").WithLocation(18, 2),
78179
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "nullable").WithArguments("nullable reference types", "8.0").WithLocation(20, 2)
Semantics\SemanticErrorTests.cs (4)
2220
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "add").WithArguments("default interface implementation", "8.0").WithLocation(4, 30),
2226
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "remove").WithArguments("default interface implementation", "8.0").WithLocation(5, 30),
2232
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "add").WithArguments("default interface implementation", "8.0").WithLocation(6, 30),
2238
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "remove").WithArguments("default interface implementation", "8.0").WithLocation(6, 35),
Semantics\StackAllocInitializerTests.cs (6)
1460
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "stackalloc").WithArguments("stackalloc initializer", "7.3").WithLocation(7, 24),
1463
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "stackalloc int [3] { 1, 2, 3 }").WithArguments("ref structs", "7.2").WithLocation(7, 24),
1466
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "stackalloc").WithArguments("stackalloc initializer", "7.3").WithLocation(8, 24),
1469
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "stackalloc int [ ] { 1, 2, 3 }").WithArguments("ref structs", "7.2").WithLocation(8, 24),
1472
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "stackalloc").WithArguments("stackalloc initializer", "7.3").WithLocation(9, 24),
1475
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "stackalloc [ ] { 1, 2, 3 }").WithArguments("ref structs", "7.2").WithLocation(9, 24));
Semantics\StackAllocSpanExpressionsTests.cs (3)
376
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "stackalloc int[10]").WithArguments("ref structs", "7.2").WithLocation(7, 23));
396
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "stackalloc int[10]").WithArguments("ref structs", "7.2").WithLocation(7, 15),
399
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "stackalloc int[100]").WithArguments("ref structs", "7.2").WithLocation(8, 15));
Semantics\TargetTypedDefaultTests.cs (6)
38
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "default").WithArguments("default literal", "7.1").WithLocation(6, 17));
70
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "default").WithArguments("default literal", "7.1").WithLocation(7, 40)
1017
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "default").WithArguments("default literal", "7.1").WithLocation(6, 9),
1023
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "default").WithArguments("default literal", "7.1").WithLocation(7, 9),
1029
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "default").WithArguments("default literal", "7.1").WithLocation(8, 37),
1035
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "default").WithArguments("default literal", "7.1").WithLocation(9, 15),
Semantics\TopLevelStatementsTests.cs (2)
1978
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, @"string Test = ""1"";").WithArguments("top-level statements", "9.0").WithLocation(2, 1)
2355
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, @"string Test() => ""1"";").WithArguments("top-level statements", "9.0").WithLocation(2, 1)
Semantics\UninitializedNonNullableFieldTests.cs (1)
111
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "nullable").WithArguments("nullable reference types", "8.0").WithLocation(3, 2),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (24)
Symbols\ExtensionMethodTests.cs (1)
2871
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "s.M").WithArguments("unmanaged constructed types", "8.0").WithLocation(5, 9)
Symbols\IndexerTests.cs (8)
1799
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Constant1").WithArguments("default interface implementation", "8.0").WithLocation(12, 18),
1802
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Constant2").WithArguments("default interface implementation", "8.0").WithLocation(13, 18),
1805
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Constant1").WithArguments("default interface implementation", "8.0").WithLocation(6, 18),
1808
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Constant2").WithArguments("default interface implementation", "8.0").WithLocation(7, 18)
1911
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Constant1").WithArguments("default interface implementation", "8.0").WithLocation(15, 18),
1914
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Constant2").WithArguments("default interface implementation", "8.0").WithLocation(16, 18),
1917
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Constant1").WithArguments("default interface implementation", "8.0").WithLocation(6, 18),
1920
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "Constant2").WithArguments("default interface implementation", "8.0").WithLocation(7, 18)
Symbols\Source\ExpressionBodiedMethodTests.cs (1)
95
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "M").WithArguments("default interface implementation", "8.0").WithLocation(4, 9)
Symbols\Source\ExpressionBodiedPropertyTests.cs (1)
56
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "1").WithArguments("default interface implementation", "8.0").WithLocation(4, 14)
Symbols\Source\ModifierTests.cs (1)
337
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "in").WithArguments("readonly references", "7.2").WithLocation(4, 29));
Symbols\SymbolErrorTests.cs (12)
857
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "add").WithArguments("default interface implementation", "8.0").WithLocation(6, 32),
860
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "remove").WithArguments("default interface implementation", "8.0").WithLocation(6, 37)
879
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "add").WithArguments("default interface implementation", "8.0").WithLocation(5, 32),
882
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "remove").WithArguments("default interface implementation", "8.0").WithLocation(5, 39)
901
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "add").WithArguments("default interface implementation", "8.0").WithLocation(5, 32),
9062
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "IBar").WithArguments("default interface implementation", "8.0").WithLocation(5, 19),
9065
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "@cly").WithArguments("default interface implementation", "8.0").WithLocation(6, 22),
9068
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "S").WithArguments("default interface implementation", "8.0").WithLocation(7, 16),
9071
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "E").WithArguments("default interface implementation", "8.0").WithLocation(8, 22)
9098
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "field2").WithArguments("default interface implementation", "8.0").WithLocation(6, 21),
9712
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "F").WithArguments("default interface implementation", "8.0").WithLocation(11, 20),
9715
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "set").WithArguments("default interface implementation", "8.0").WithLocation(12, 23),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
LexicalAndXml\LexicalTests.cs (2)
2770
Assert.Equal((int)ErrorCode.
ERR_FeatureNotAvailableInVersion7
, errors[0].Code);
2779
Assert.Equal((int)ErrorCode.
ERR_FeatureNotAvailableInVersion7
, errors[0].Code);
Parsing\ParserErrorMessageTests.cs (1)
2794
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "new").WithArguments("target-typed object creation", "9.0").WithLocation(7, 21),
Parsing\ReadOnlyStructs.cs (3)
81
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "readonly").WithArguments("readonly structs", "7.2").WithLocation(4, 5),
84
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "readonly").WithArguments("readonly structs", "7.2").WithLocation(6, 12),
87
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "readonly").WithArguments("readonly structs", "7.2").WithLocation(8, 5)
Parsing\RefStructs.cs (2)
58
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "ref").WithArguments("ref structs", "7.2").WithLocation(4, 5),
61
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "ref").WithArguments("ref structs", "7.2").WithLocation(6, 12)
Parsing\StackAllocInitializerParsingTests.cs (4)
28
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "stackalloc").WithArguments("stackalloc initializer", "7.3").WithLocation(1, 30),
75
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "stackalloc").WithArguments("stackalloc initializer", "7.3").WithLocation(1, 30),
122
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "stackalloc").WithArguments("stackalloc initializer", "7.3").WithLocation(1, 30),
156
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion7
, "stackalloc").WithArguments("stackalloc initializer", "7.3").WithLocation(1, 30),