class Declaration { fun lambdaType(p: Int, f: (Int) -> Int) = f(p) } fun call(declaration: Declaration) { declaration.lambdaType(6) { it + 7 } }