From 2cf66207188a5ab5ed4f7cb043c0cdd14624f124 Mon Sep 17 00:00:00 2001
From: vvvv <vvvv@yandex-team.com>
Date: Wed, 4 Mar 2026 20:00:46 +0300
Subject: YQL-20339 python/js runtime linear checker
 commit_hash:362a2d7f5bad4151c0890ab29f0804471bd1bab4

---
 .../test/cases/LinearDynamicFail3.sql              | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail3.sql

(limited to 'yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail3.sql')

diff --git a/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail3.sql b/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail3.sql
new file mode 100644
index 00000000000..8ba3db4fe0b
--- /dev/null
+++ b/yql/essentials/udfs/common/python/python3_small/test/cases/LinearDynamicFail3.sql
@@ -0,0 +1,26 @@
+$s = @@
+def f(x):
+    class Once:
+        def __init__(self, v):
+            self.v = v
+            self.extracted = False
+
+        def extract(self):
+            assert not self.extracted
+            self.extracted = True
+            ret = self.v
+            self.v = None
+            return ret
+
+    return Once(x + 1)
+
+def g(x):
+    return 1
+@@;
+
+$p = Python::f(Callable<(Int32)->DynamicLinear<Int32>>, $s);
+$c = Python::g(Callable<(DynamicLinear<Int32>)->Int32>, $s);
+
+select $c($p(1));
+
+
-- 
cgit v1.3

