Control-Flow: Assign pseudo-values to local functions (except those
declared directly in the block)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fun test(b: Boolean): (Int) -> Int {
|
||||
if (b) {
|
||||
fun(n: Int) = n + 1
|
||||
}
|
||||
else {
|
||||
fun(n: Int) = n - 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user