public class MyClass
{
public static interface MyInterface
{
public void DoThingA();
}
{
public static interface MyInterface
{
public void DoThingB();
}
MyOtherClass.MyInterface
{
public void DoThingA() {};
public void DoThingB() {};
public static void main(String[] args) {}
C:\TEMP\vjs>vjc Stuff.js
Microsoft Visual J# (R) Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727
Copyright (C) Microsoft Corp 2000-2002. All rights reserved.
Stuff.js(17,8): error VJS1159: Interface 'MyInterface' is implemented
twice
C:\TEMP\vjs>
But compiles fine in prior version:
C:\TEMP\vjs>\WINDOWS\Microsoft.NET\Framework\v1.1.4322\vjc.exe Stuff.js
Microsoft (R) Visual J# .NET Compiler version 7.10.3077.0
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corp 2000-2002. All rights reserved.
C:\TEMP\vjs>
whether the interfaces are declared static or not).

"Interface implemented twice" 2.0 compiler bug?
automation_man
Meg!
It's a known bug. See the following page.
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=f1b7d9c3-6e8d-4a61-942f-beffee69ea1e