Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumKotlintype-safe builders DSLsSingle-choice MCQ

With the DSL below using `@DslMarker`, what is the status of the marked line inside the nested `td { }` lambda?

@DslMarker annotation class TableDsl @TableDsl class Table { fun row(b: Row.() -> Unit) {} } @TableDsl class Row { fun td(b: Cell.() -> Unit) {} } @TableDsl class Cell fun table(b: Table.() -> Unit) = Table().apply(b) val t = table { row { td { row { } // <-- this line } } }