mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-05-16 14:53:04 -04:00
Recent compilers do not allow parametric functions to be exported, so remove the keyword. Note that this means the function now gets inlined with default optimization levels.
6 lines
84 B
Mojo
6 lines
84 B
Mojo
fn multiply[m: Int](n: Int) -> Int:
|
|
return m * n
|
|
|
|
fn main():
|
|
_ = multiply[3](5)
|