mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
comment out broken IsA definition, rely on working version in base. Be explicit that typevars can ac like Object.
This commit is contained in:
parent
52e51613cc
commit
8faedcd10a
@ -2730,19 +2730,19 @@ namespace Twiglet.CS2J.Translator.TypeRep
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Returns true if we are a subclass of other, or implements its interface
|
// Returns true if we are a subclass of other, or implements its interface
|
||||||
public override bool IsA (TypeRepTemplate other, DirectoryHT<TypeRepTemplate> AppEnv) {
|
// public override bool IsA (TypeRepTemplate other, DirectoryHT<TypeRepTemplate> AppEnv) {
|
||||||
InterfaceRepTemplate i = other as InterfaceRepTemplate;
|
// InterfaceRepTemplate i = other as InterfaceRepTemplate;
|
||||||
if (i == null)
|
// if (i == null)
|
||||||
{
|
// {
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
if (i.TypeName == this.TypeName)
|
// if (i.TypeName == this.TypeName)
|
||||||
{
|
// {
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
return base.IsA(other,AppEnv);
|
// return base.IsA(other,AppEnv);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
public override ResolveResult Resolve(String name, bool forWrite, DirectoryHT<TypeRepTemplate> AppEnv)
|
public override ResolveResult Resolve(String name, bool forWrite, DirectoryHT<TypeRepTemplate> AppEnv)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -3419,6 +3419,7 @@ namespace Twiglet.CS2J.Translator.TypeRep
|
|||||||
|
|
||||||
public TypeVarRepTemplate (string typeName) : base(typeName)
|
public TypeVarRepTemplate (string typeName) : base(typeName)
|
||||||
{
|
{
|
||||||
|
Inherits = new String[] { "System.Object" };
|
||||||
}
|
}
|
||||||
|
|
||||||
public TypeVarRepTemplate (TypeVarRepTemplate copyFrom) : base(copyFrom)
|
public TypeVarRepTemplate (TypeVarRepTemplate copyFrom) : base(copyFrom)
|
||||||
@ -3442,7 +3443,7 @@ namespace Twiglet.CS2J.Translator.TypeRep
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override bool IsA (TypeRepTemplate other, DirectoryHT<TypeRepTemplate> AppEnv) {
|
public override bool IsA (TypeRepTemplate other, DirectoryHT<TypeRepTemplate> AppEnv) {
|
||||||
return false;
|
return base.IsA(other, AppEnv);
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Equality
|
#region Equality
|
||||||
|
Loading…
x
Reference in New Issue
Block a user