Files
2026-07-18 19:25:40 +08:00

21 lines
488 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import stdio
import t, c
# ============================================================
# 负向测试定义模块:定义 SecretClass
#
# 此文件定义 SecretClass但 main.py 不 import 它。
# 严格模式下 main.py 中的 SecretClass() 构造应编译失败。
# ============================================================
class SecretClass:
val: t.CInt
def __init__(self, v: t.CInt):
self.val = v
def GetVal(self) -> t.CInt:
return self.val