for "build" config, import corlib common sources at unix instead (#11989)
[mono-project.git] / mcs / errors / cs0108-12.cs
blobd6dcdf416bd4cd7036ad554d98986f949e270504
1 // CS0108: `Libs.MyLib' hides inherited member `Foo.MyLib'. Use the new keyword if hiding was intended
2 // Line: 18
3 // Compiler options: -warnaserror -warn:2
5 using System;
6 using System.Runtime.InteropServices;
8 class Test {
9 [DllImport (Libs.MyLib)]
10 private static extern void foo ();
12 public static void Main ()
17 class Libs : Foo {
18 internal const string MyLib = "SomeLibrary";
20 class Foo {
21 internal const string MyLib = "Foo";