Skip to content
This repository was archived by the owner on Jan 3, 2025. It is now read-only.
This repository was archived by the owner on Jan 3, 2025. It is now read-only.

Compile error missing from Problems list #198

@zacaj

Description

@zacaj

I made a single nim file with the given contents, and I don't get any errors in VS Code (no red line, no entry in the Problems list, etc). If I try to compile the file, I get an error, "Error: conversion from All to A is invalid". Many other types of errors and warnings are working fine though

type
  All = enum
    a1
    a2
    b1
    b2
  A = range[a1..a2]
  B = range[b1..b2]

proc test(a: A) =
  echo a

test(b1)

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