google-developer-training / kotlin-bootcamp

Report issues with the Kotlin Bootcamp for Programmers codelab
7 stars 2 forks source link

Kotlin Bootcamp issue: #175

Open Louie-Jay opened 1 year ago

Louie-Jay commented 1 year ago

Outdated tutorial.

[Kotlin Bootcamp for Programmers 6: Functional manipulation] (https://developer.android.com/codelabs/kotlin-bootcamp-sams?authuser=1) Step 2: Create your own annotation.

Write this code in IntelliJ: import kotlin.reflect.full.* // required import

class Plant { fun trim(){} fun fertilize(){} }

fun testAnnotations() { val classObj = Plant::class for (m in classObj.declaredMemberFunctions) { println(m.name) } }

IntelliJ IDEA 2022.3.2 (Community Edition) Build #IC-223.8617.56, built on January 26, 2023

Unresolve reference: full Unresolve reference: declaredMemberFunctions

codelab: kotlin-bootcamp