Skip to content

Javascript: No $ defined for unsigned int #7657

@mratsim

Description

@mratsim

Test case

let a = 1'u8
echo a
Error: type mismatch: got <uint8>
but expected one of:
proc `$`(x: string): string
proc `$`(x: int): string
proc `$`(x: char): string
proc `$`[Enum: enum](x: Enum): string
proc `$`[T](x: set[T]): string
proc `$`(x: float): string
proc `$`(x: int64): string
proc `$`[T](x: seq[T]): string
proc `$`[T: tuple |
    object](x: T): string
proc `$`(x: bool): string
proc `$`(x: cstring): string
proc `$`[T, IDX](x: array[IDX, T]): string

expression: $(a)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions