mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 19:29:27 -06:00
before:
```mojo
def multiply[m: Int](n: Int) -> Int:
return m * n
def main():
_ = multiply[3](5)
```
https://godbolt.org/z/ze4r9ecbY
after:
```mojo
@export
def multiply(x: Int, y: Int) abi("C") -> Int:
return x * y
```
Whivh mush simpler in term of source and codegen:
https://godbolt.org/z/4Mz1hj9b5