Skip to content

internal compiler error: type_of with ty_param #2504

Closed
@killerswan

Description

@killerswan

So I was trying to add an insert_with_key method to map like so, and I don't yet know how to avoid this error.

On one of the branches where I'm playing with this, this is a commit before which things compile, and after which I see error like so. All that change does is change the argument type from fn(uint) to fn(V).

What's more, I haven't been able to reduce this to a problem outside of the standard library. For example, this compiles just fine. :P

Any ideas?

Metadata

Metadata

Assignees

Labels

A-codegenArea: Code generation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions