Files
kotlin-fork/compiler/testData/diagnostics/tests/when/withSubjectVariable/nestedWhenWithSubject.txt
T
Dmitry Petrov ae929d0f08 Handle nested when with subject properly
Hack: callee expression for when with subject variable is the subject
variable declaration. This solves the problem that all sub-calls in the
expression are implicitly considered to have a single common lexical
scope (and 'when (val x = ...)' introduces a new lexical scope, which
contains 'x').
2018-06-20 14:06:34 +03:00

9 lines
229 B
Plaintext
Vendored

package
public fun </*0*/ T> bar(/*0*/ x: T, /*1*/ y: T): kotlin.Unit
public fun foo(): kotlin.Unit
public fun test1(): kotlin.Unit
public fun test2(): kotlin.Unit
public fun test3(): kotlin.Unit
public fun test4(): kotlin.Unit