@vedantk@adrian-prantl I stumbled into this problem when working on another bug. The problem happens because of the logic that decides what the function's decorator should be.
constchar *func_decorator = "";
if (static_method) {
if (is_class)
func_decorator = "final class";
elsefunc_decorator = "static";
} elseif (is_class && !weak_self) { // is_class is falsefunc_decorator = "final";
} else {
func_decorator = "mutating";
}
Additional Detail from JIRA
md5: cf5cfd21acc58d5eb0b8c94e4b580a55
Issue Description:
LLDB fails to run any expression inside a default implementation of a class-bound protocol where there are no references to self.
Minimal example :
LLDB:
Output:
The text was updated successfully, but these errors were encountered: