Jukka Siivonen
08/24/2020, 9:18 AMdiesieben07
08/24/2020, 9:20 AMFoo here? A class?Jukka Siivonen
08/24/2020, 9:20 AMdiesieben07
08/24/2020, 9:21 AMparam either needs an instance parameter or you need to do someFooInstance::myFunctionJukka Siivonen
08/24/2020, 9:22 AMdiesieben07
08/24/2020, 9:23 AMFoo::myFunction is of type Foo.() -> Boolean, it needs the actual instance of Foo to call the method on.diesieben07
08/24/2020, 9:23 AM() -> Boolean you need to pre-bind the receiver: myInstance::myFunctionJukka Siivonen
08/24/2020, 9:26 AM