lambda icon indicating copy to clipboard operation
lambda copied to clipboard

Fix arity of functions returning methods

Open 71104 opened this issue 8 years ago • 0 comments

Counting the length of a function must stop when this is encountered and it's not the first argument.

Examples:

fn x -> ...          # 1
fn x, y -> ...       # 2
fn this -> ...       # 0
fn this, x -> ...    # 1
fn this, x, y -> ... # 2
fn x, this, y -> ... # 1
fn x, y, this -> ... # 2
fn this, this -> ... # 1

This also affects marshalling.

71104 avatar Sep 24 '16 19:09 71104