var regularComp = CreateCompilationWithMscorlib(text);
// these diagnostics correspond to those produced by the native compiler.
comp.VerifyDiagnostics(
regularComp.VerifyDiagnostics(
// (9,11): error CS0039: Cannot convert type 'int' to 'C' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion
// M(1 as C);
Diagnostic(ErrorCode.ERR_NoExplicitBuiltinConv, "1 as C").WithArguments("int", "C").WithLocation(9, 11),
...
...
@@ -12461,8 +12461,8 @@ static void M(object o)
);
// in strict mode we also diagnose "is" and "as" operators with a static type.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
ImportsSystem.Collections.Immutable
ImportsSystem.Linq
ImportsSystem.Xml.Linq
ImportsMicrosoft.CodeAnalysis.CodeGen
ImportsMicrosoft.CodeAnalysis.Test.Utilities
...
...
@@ -14,9 +15,10 @@ Public MustInherit Class BasicTestBase