google-developer-training / kotlin-bootcamp

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

Kotlin Bootcamp issue: #170

Open alexyuryev opened 1 year ago

alexyuryev commented 1 year ago

Describe the problem

There is an example of an inline function in SAMS section:

inline myWith(fish.name) {
    capitalize()
}

But it can't be compiled

In which step of the codelab can this issue be found? 6. Concept: Inline functions (sams#5)

Steps to reproduce? Try to compile code from the example

Versions IntelliJ IDEA 2022.2.3 (Community Edition)

Additional information I think it's because inline should be applied at function definition but not at function invocation

codelab: kotlin-bootcamp