artiq/lit-test/test/embedding/function_polymorphism.py

13 lines
200 B
Python
Raw Normal View History

# RUN: %python -m artiq.compiler.testbench.embedding %s
from artiq.language.core import *
from artiq.language.types import *
def f(x):
print(x)
@kernel
def entrypoint():
f("foo")
f(42)