-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2010-05-05 Miguel de Icaza <miguel@novell.com>
* class.cs (TypeContainer.DefineBaseTypes) (TypeContainer.CheckRecursiveDefinition): check for the iface not being null, as we could have failed resolution and crashed; Fixes #442144 svn path=/trunk/mcs/; revision=156759
- Loading branch information
1 parent
cb373a0
commit f51cb39
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// CS0246: The type or namespace name `IBase' could not be found. Are you missing a using directive or an assembly reference? | ||
// Line: 155555 | ||
|
||
namespace Foo { | ||
public interface IBase { | ||
object X { get; } | ||
} | ||
} | ||
|
||
public interface IDerived<T> : Foo.IBase { | ||
T X { get; } | ||
} | ||
|
||
public class Test<T> { | ||
public class Y : IDerived<T>, IBase | ||
{ | ||
public T X { get { return default (T); } } | ||
object Foo.IBase.X { | ||
get { return default (T); } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters