Skip to content

A regression (?) with --gc:arc and repr #13731

@ghost

Description

repr doesn't work with a File object on devel

Example

# Compile with nim c --gc:arc file.nim
import os
var a: File
echo repr a

Current Output

/home/dian/stuff/nim-cephei/test.nim(5, 11) Error: ambiguous call; both repr_v2.repr(x: ref T or ptr T) [declared in /home/dian/.nim/lib/system/repr_v2.nim(106, 6)] and repr_v2.repr(x: ptr T) [declared in /home/dian/.nim/lib/system/repr_v2.nim(102, 6)] match for: (File)

Nim compiler hash is fc5dd11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions