Discussion:
On bug 861
Dmitry Ivankov
2007-07-15 08:20:30 UTC
Permalink
Hi

Commenting out error message generating in TypeBuilder.n:1579..1580 "fixes"
861.
I don't get how TypeInfo.member_map works.
Why only first mapped member is checked and only one is then set?
Looks like it's because all members are supposed to be of same kind.

One more example that should work, but gets the same error:
class B {
//ambiguity isn't fatal, it sometimes can be resolved
class A {}
static A () : void {}
}
or even
class B {
//ambiguity isn't fatal, it sometimes can be resolved
class A {}
A (_ : int) : void {}
}

One more related bug:
class A[T] {};
class A[T, S] {};
_ = A (); //E:
Both overloads are printed as "constructor A..ctor() : void", should print
typarams too (and not void, which is todo :) ).
Same with methods.

Loading...