@@ -245,6 +245,25 @@ public ImmutableArray<AssemblySymbol> ReferencedAssemblySymbols
/// </summary>
internalabstractImmutableArray<AssemblySymbol>GetReferencedAssemblySymbols();// TODO: Remove this method and make ReferencedAssemblySymbols property abstract instead.
FriendMustOverrideFunctionGetReferencedAssemblySymbols()AsImmutableArray(OfAssemblySymbol)' TODO: Remove this method and make ReferencedAssemblySymbols property abstract instead.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Invalid expression: System.Int32 is not defined in corlib above.
testData=newCompilationTestData();
context.CompileExpression(
"1",
outerror,
testData);
Assert.Equal("error CS0518: Predefined type 'System.Int32' is not defined or imported",error);
// Invalid expression: type in method signature from missing referenced assembly.
testData=newCompilationTestData();
context.CompileExpression(
"(new object()).F()",
outerror,
testData);
Assert.Equal("error CS0570: 'object.F()' is not supported by the language",error);
// Invalid expression: type forwarded to missing referenced assembly.
testData=newCompilationTestData();
context.CompileExpression(
"new Private2()",
outerror,
testData);
Assert.Equal("error CS0246: The type or namespace name 'Private2' could not be found (are you missing a using directive or an assembly reference?)",error);
}
}
}
// References to missing assembly from PDB custom debug info.
// 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.