fix tests in org.jetbrains.kotlin.js.test.semantics
This commit is contained in:
@@ -3,13 +3,13 @@ package foo
|
||||
// CHECK_CONTAINS_NO_CALLS: localWithCapture
|
||||
// CHECK_CONTAINS_NO_CALLS: localWithoutCapture
|
||||
|
||||
inline fun repeatAction(times: Int, action: () -> Unit) {
|
||||
internal inline fun repeatAction(times: Int, action: () -> Unit) {
|
||||
for (i in 1..times) {
|
||||
action()
|
||||
}
|
||||
}
|
||||
|
||||
fun localWithoutCapture(a: Int, b: Int): Int {
|
||||
internal fun localWithoutCapture(a: Int, b: Int): Int {
|
||||
var sum = 0
|
||||
|
||||
@inline fun inc(x: Int): Int {
|
||||
@@ -23,7 +23,7 @@ fun localWithoutCapture(a: Int, b: Int): Int {
|
||||
return sum
|
||||
}
|
||||
|
||||
fun localWithCapture(a: Int, b: Int): Int {
|
||||
internal fun localWithCapture(a: Int, b: Int): Int {
|
||||
var sum = 0
|
||||
|
||||
@inline fun inc() {
|
||||
|
||||
Reference in New Issue
Block a user