You can state a type when creating a SAM implement...
# getting-started
h
You can state a type when creating a SAM implementation: https://kotlinlang.org/docs/reference/java-interop.html#sam-conversions – but you cannot use trailing closure syntax then.