edgedb icon indicating copy to clipboard operation
edgedb copied to clipboard

Check if type exists when tracing type cast, is, and introspect.

Open dnwpark opened this issue 9 months ago • 2 comments

Given the schema:

  type MyType {
    parent: MyType;
    is_initial := .parent is null;
  }

A nicer error is produced:

error: type 'default::null' does not exist
  │
6 │     is_initial := .parent is null;
  │                              ^^^^ Did you mean to use `exists`?

close #7256

dnwpark avatar May 14 '24 22:05 dnwpark