mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 13:07:48 +00:00
- **fixes #25043: `internal error: genTypeInfo(tyUserTypeClassInst)`**
- **chore(test): for 25043**
(cherry picked from commit 7e2df41850)
16 lines
312 B
Nim
16 lines
312 B
Nim
discard """
|
|
action: "compile"
|
|
"""
|
|
|
|
proc audit*(event: string, args: varargs[string]) = discard
|
|
# args is `varargs[Any]` in real world code
|
|
|
|
type PathLike[T] = concept self
|
|
$self is T # a simplified definition
|
|
|
|
proc utime[T](path: PathLike[T]) =
|
|
audit("os.utime", $path)
|
|
|
|
when isMainModule:
|
|
utime("sad")
|