mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
- **fixes #25043: `internal error: genTypeInfo(tyUserTypeClassInst)`**
- **chore(test): for 25043**
(cherry picked from commit 7e2df41850)
This commit is contained in:
15
tests/js/t25043.nim
Normal file
15
tests/js/t25043.nim
Normal file
@@ -0,0 +1,15 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user