Class FunInterfaceConstructorReference

  • All Implemented Interfaces:
    java.io.Serializable, kotlin.Function, kotlin.jvm.internal.FunctionBase, kotlin.reflect.KAnnotatedElement, kotlin.reflect.KCallable, kotlin.reflect.KFunction

    @SinceKotlin(version="1.7")
    public class FunInterfaceConstructorReference
    extends FunctionReference
    implements java.io.Serializable
    Superclass for instances of functional interface constructor references:
         fun interface IFoo {
             fun foo()
         }
         val iFoo = IFoo { println("Hello!") }    // calling fun interface constructor
         val iFooCtor = ::IFoo                    // callable reference to fun interface constructor
     
    Doesn't support reflection yet.
    See Also:
    Serialized Form