# For now, fields with the same name (eg overloaded virtual methods) just # accumulate attributes. assert ["Sub1 override", "Sub1 override for int overload", "second attr"] == sorted(
info["OtherFieldTags"]["Sub1"]["someGC"]
)
# Virtual resolution should take the static type into account: the only method # implementations considered should be those of descendants, even if the # virtual method is inherited and not overridden in the static class. (Base # defines sibGC() as pure virtual, Super inherits it without overriding, # Sibling and Sub2 both implement it.)
# Call Base.sibGC on a Super pointer: can only call Sub2.sibGC(), which does not GC. # In particular, PEdgeCallInstance.Exp.Field.FieldCSU.Type = {Kind: "CSU", Name="Super"} assert"c12"notin hazmap # Call Base.sibGC on a Base pointer; can call Sibling.sibGC(), which GCs. assert"c13"in hazmap
# Call nsISupports.danger() which is annotated to be overridable and hence can GC. assert"c14"in hazmap
# ~SafePrincipals does not GC. assert"c20"notin hazmap
# ...but when cast to a nsISupports*, the compiler can't tell that it won't. assert"c21"in hazmap
# Function pointers! References to function pointers! Created by reference-capturing lambdas! assert"c22"in hazmap assert"c23"in hazmap assert"c24"in hazmap assert"c25"notin hazmap assert"c26"notin hazmap assert"c27"notin hazmap
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.