localReceivers

fun localReceivers(vararg receivers: Any?)(source)

Runtime declaration for the localReceivers contexts plugin function.

This function is a stub that is replaced at compile time by the Kone contexts compiler plugin. It registers the provided receivers as local receivers available in the current scope for context resolution.

Parameters

receivers

The objects to register as local receivers.

Throws

Always thrown at runtime; this function must be transformed by the Kone contexts compiler plugin before execution.