• d

    dstarcev

    4 years ago
    How do I find check if a constructor parameter is also a property?
    d
    udalov
    +1
    10 replies
    Copy to Clipboard
  • m

    mbickel

    4 years ago
    I've a question on
    KClass.memberProperties
    - the docs say I get a
    Collection<KProperty1<T, *>>
    , but when I iterate this, the compiler infers
    KProperty1<out T, Any?>
    , which prevents me from calling
    it.get(this)
    on it. Anybody know why?
    m
    udalov
    7 replies
    Copy to Clipboard
  • d

    diesieben07

    4 years ago
    Is there a way to go from a
    KProperty1<T, R>
    to a
    KProperty0<R>
    when I have the receiver object (
    T
    )? I.e., can I "bind" a receiver to a property?
    d
    udalov
    +1
    4 replies
    Copy to Clipboard
  • d

    Danny

    4 years ago
    Any kotlin-reflect 1.2.41 users on Windows 10 using stock Windows 10 Defender antivirus not able to build their projects? I've found that recent updates to the Windows 10 Defender antivirus is marking the jar as a trojan. To reproduce, set windows 10 defender as your antivirus and try to run a build that requires kotlin-reflect 1.2.41 as a dependency
    d
    gildor
    3 replies
    Copy to Clipboard
  • codyoss

    codyoss

    4 years ago
    is it possible in Kotlin to have a function that take a reified type and do a
    is
    check on
    reified T : Any
    at runtime?
    codyoss
    d
    4 replies
    Copy to Clipboard
  • codyoss

    codyoss

    4 years ago
    nvm I just decided to cast to Bar<Any, Any> and suppress the warning. If there is a better way to handle such a thing please do let me know
    codyoss
    d
    4 replies
    Copy to Clipboard
  • snowe

    snowe

    4 years ago
    How do I check if a member is of a nullable class
    snowe
    d
    6 replies
    Copy to Clipboard
  • groostav

    groostav

    4 years ago
    so if I want to grab a private member my best bet is to after it via javas reflection api, rather than kotlins, which is so much nicer Q_Q
    groostav
    1 replies
    Copy to Clipboard
  • s

    ske

    4 years ago
    How much of the reflection API is available without depending on kotlin-reflect?
    s
    1 replies
    Copy to Clipboard