def a=() = 42
    ^~ invalid method name; a setter method cannot be defined in an endless method definition

def []=() = 42
    ^~~ invalid method name; a setter method cannot be defined in an endless method definition

