Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Kotlin
/
DSLs
Two nested receiver types carry the same DSL marker. How can the inner block access an ou…
from DSLs
Kotlin 2.4.10
intermediate
1 min
Two nested receiver types carry the same DSL marker. How can the inner block access an outer receiver intentionally?
Use a qualified receiver such as this@service
Remove the marker at runtime before the call
Cast the inner receiver to the outer type
It is impossible once @DslMarker is present
Check
Ask AI about this kata
Report an error
next kata
What does this receiver-based builder print?
Predict the output
A new version is available
Reload