Skip to content

DefaultSimpleImportingScope

Constructors

DefaultSimpleImportingScope

constructor(indexInTower: Int)

Properties

indexInTower

open override val indexInTower: Int

An index in the scope tower. The lower the index, the closer the scope is to the context position.

Example

fun f(a: A, b: B) {      // local scope:       indexInTower = 2
    with(a) {            // type scope for A:  indexInTower = 1
        with(b) {        // type scope for B:  indexInTower = 0
            <caret>
        }
    }
}