diff options
Diffstat (limited to 'test/definition')
-rw-r--r-- | test/definition/bug.lua | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/test/definition/bug.lua b/test/definition/bug.lua index 8c446123..d9ed7afc 100644 --- a/test/definition/bug.lua +++ b/test/definition/bug.lua @@ -169,3 +169,63 @@ end local v v.<?bar1?> ]] + +TEST [[ +local A, B + +function A:get1() + local <!a!> = B:get() + return <!a!> +end + +function A:get2() + local <!a!> = B:get() + return <!a!> +end + +function A:get3() + local <!a!> = B:get() + return <!a!> +end + +function A:get4() + local <!a!> = B:get() + return <!a!> +end + +function A:get5() + local <!a!> = B:get() + return <!a!> +end + +function A:get6() + local <!a!> = B:get() + return <!a!> +end + +function A:get7() + local <!a!> = B:get() + return <!a!> +end + +function A:get8() + local <!a!> = B:get() + return <!a!> +end + +function B:get() + local <!b!> + <!b!> = A:get1() + <!b!> = A:get2() + <!b!> = A:get3() + <!b!> = A:get4() + <!b!> = A:get5() + <!b!> = A:get6() + <!b!> = A:get7() + <!b!> = A:get8() + return <!b!> +end + +local <!b!> = B:get() +print(<?b?>) +]] |