forked from M-Labs/nac3
WIP
This commit is contained in:
parent
4c504abd16
commit
9421f166de
@ -161,7 +161,9 @@
|
||||
clippy
|
||||
pre-commit
|
||||
rustfmt
|
||||
rust-analyzer
|
||||
];
|
||||
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
||||
};
|
||||
devShells.x86_64-linux.msys2 = pkgs.mkShell {
|
||||
name = "nac3-dev-shell-msys2";
|
||||
|
@ -23,10 +23,33 @@ class B(A):
|
||||
self.a = b + 1
|
||||
self.b = b
|
||||
|
||||
class C:
|
||||
a: int32
|
||||
def __init__(self):
|
||||
self.a = 42
|
||||
|
||||
def test2(self):
|
||||
self.a = 23
|
||||
class D(C):
|
||||
def __init__(self):
|
||||
C.test2(self)
|
||||
# self.test()
|
||||
# C.test2(self)
|
||||
# self.a = 2
|
||||
# __main__.C.__init__(self)
|
||||
|
||||
def test(self):
|
||||
self.a = 2
|
||||
|
||||
|
||||
|
||||
def run() -> int32:
|
||||
aaa = A(5)
|
||||
bbb = B(2)
|
||||
aaa.f1()
|
||||
bbb.f1()
|
||||
x = D()
|
||||
x.__init__()
|
||||
output_int32(x.a)
|
||||
|
||||
# aaa = A(5)
|
||||
# bbb = B(2)
|
||||
# aaa.f1()
|
||||
# bbb.f1()
|
||||
return 0
|
||||
|
BIN
pyo3_output/nac3artiq.so
Executable file
BIN
pyo3_output/nac3artiq.so
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user