mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 04:24:43 +00:00
10 lines
210 B
Python
10 lines
210 B
Python
math = pyimport "math"
|
|
|
|
_: Float = math.prod [1.1, 2.1]
|
|
print! math.prod ["a", "b"] # ERR
|
|
_: Nat = math.prod [1, 2, 3]
|
|
_: Str = math.prod [1, 2, 3] # ERR
|
|
|
|
eq x, y = x == y
|
|
print! eq 1, 1
|
|
print! eq 1, "a" # ERR
|