2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-05 01:36:39 +08:00
artiq/lit-test/test/monomorphism/error_notmono.py

10 lines
319 B
Python
Raw Normal View History

# RUN: %python -m artiq.compiler.testbench.signature +diag %s >%t
2015-07-03 02:28:26 +08:00
# RUN: OutputCheck %s --file-to-check=%t
# CHECK-L: ${LINE:+1}: error: the type of this expression cannot be fully inferred
x = int(1)
# CHECK-L: ${LINE:+1}: error: the return type of this function cannot be fully inferred
def fn():
return int(1)