Skip to content

Bad error message dereferencing something with a class type #2370

Closed
@catamorphism

Description

@catamorphism
class cat { new() {} }

fn main() {
  log (error, *(cat()));     // 1
  let nyan = cat();
  log (error, *nyan);       // 2
  let kitty : cat = cat();
  log (error, *kitty);        // 3
}

(1) yields the correct error message: "Type cat cannot be dereferenced". (2) and (3) yield less-than-helpful error messages of the form "Type <V1> cannot be dereferenced".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions