()
| 6 | |
| 7 | @test("decay") |
| 8 | def _(): |
| 9 | @decay |
| 10 | def func(a: str, b: int, c: Pointer): |
| 11 | assert type(a) is str |
| 12 | assert type(b) is int |
| 13 | assert type(c) is Pointer |
| 14 | |
| 15 | func("a", 1, "c") |
| 16 | |
| 17 | @decay |
| 18 | def func2(a: str, b: int, c: Pointer[str]): |
| 19 | assert type(a) is str |
| 20 | assert type(b) is int |
| 21 | assert type(c) is Pointer |
| 22 | |
| 23 | func2("a", 1, "c") |
| 24 | |
| 25 | |
| 26 | @test("decay with annotated") |