like that
Int sas = [
Int sus = [
1 sas
1 sus
]
1 sas
1 sus
]
1 sas
1 sus // ERROR, no such function
Main problem will be to not put this local defined functions inside types, but store them somewhere, and just search in this new place when searching for methods