Open masonwheeler opened 9 years ago
Making a change to Boo.Lang.Compiler.TypeSystem.Generics.GenericConstructedType
seems to fix this, only to run into another error down the road. Here's the partial fix:
public virtual bool IsAssignableFrom(IType other)
{
if (other == null)
return false;
if (other == this || other.IsSubclassOf(this) || (other.IsNull() && !IsValueType) || IsGenericAssignableFrom(other))
return true;
return false;
}
public bool IsGenericAssignableFrom(IType other)
{
var ci = this.ConstructedInfo;
if (ci == null)
return false;
var gd = ci.GenericDefinition;
if (gd == null)
return false;
return gd.IsAssignableFrom(other);
}
But now, when attempting to compile this:
Language feature not implemented: referencing generic parameter of outer type. (BCE0031)
Update: After a lot of work has been done on improved generic types support, this error is fixed, but now we get a different one:
Foo.Bar[of T]
requires1
arguments.
This should compile and work as expected, assuming
_bar
is assigned somewhere. Unfortunately, it never makes it that far.