Open vitek-karas opened 2 years ago
I know IL Linker does this, but I've been wondering whether this could also be fixed by turning on the abstract
bit on types we don't see constructed.
hmm - that is an interesting idea ... something like "reverse sealer" :wink:
The logic which keeps virtual methods if the type is constructed and if the virtual method is used only works on constructed types (as expected). But if there's a non-constructed type which implements an abstract method, such method has to be kept in order for the metadata to be consistent. Currently we don't keep such a method.
To test, modify the VirtualMethods test to look like this:
/cc @MichalStrehovsky