mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
15 lines
204 B
Nim
15 lines
204 B
Nim
proc doSomething*(x, y: int): int =
|
|
## do something
|
|
x + y
|
|
|
|
const
|
|
a* = 1 ## echo 1234
|
|
b* = "test"
|
|
|
|
type
|
|
MyEnum* = enum
|
|
foo, bar
|
|
|
|
proc foo2*[T: int, M: string, U](x: T, y: U, z: M) =
|
|
echo 1
|