2009-10-22 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / cs0108-12.cs
blobec06b81d774a9410e1b88662e7fba681bfeb5665
1 // cs0108-12.cs: `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";