## SHOULD_PASS:EXECUTE

local TabMixedNonSeq = table(1 = 1, 2 = 2, 3 = 3, 10 = 10, 100 = 100, 2359 = 2359, # 6
                             4 = "4", 5 = "5", 6 = "6", 11 = "11", 123 = "123", # 5
                             "s" = "s", "foo" = "bar") # 2

local TabMixedSeq = table(1 = 1, 2 = 2, 3 = 3, 7 = 7, 9 = 9, 11 = 11, # 6
                          4 = "4", 5 = "5", 6 = "6", 8 = "8", 10 = "10", # 5
                          "s" = "s", "foo" = "bar") # 2


local I = 0
foreach(_:number, _:number = TabMixedNonSeq) {
    I = I + 1
}

assert(I == 6)

I = 0
foreach(_:number, _:string = TabMixedSeq) {
    I = I + 1
}

assert(I == 5)
