Skip to content

attempting to call undeclared routine: 'case' #20283

@derekdai

Description

@derekdai

What happened?

Compiler report ttempting to call undeclared routine: 'case' for this code snippet

case @[] else: discard

Nim Version

Nim Compiler Version 1.7.1 [Linux: amd64]
Compiled at 2022-08-29
Copyright (c) 2006-2022 by Andreas Rumpf

git hash: ee11302
active boot switches: -d:release

Current Standard Output Logs

test.nim(1, 1) Error: attempting to call undeclared routine: 'case'

Expected Standard Output Logs

test.nim(1, 6) Error: selector must be of an ordinal type, float or string

Possible Solution

No response

Additional Information

Versions prior 1.7 work as expected.

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