Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property or link with union type of type and a derived type produces error #7221

Closed
dnwpark opened this issue Apr 18, 2024 · 0 comments · Fixed by #7228
Closed

Property or link with union type of type and a derived type produces error #7221

dnwpark opened this issue Apr 18, 2024 · 0 comments · Fixed by #7228
Assignees

Comments

@dnwpark
Copy link
Contributor

dnwpark commented Apr 18, 2024

Given the schema

  type A;
  type A_ extending A;

  type Bad {
    property foo -> A | A_;
  };

The following error is produced:

SchemaError: object type 'default::A' already exists

Given the schema

  type A;
  type A_ extending A;
  type B;

  type Bad {
    property foo -> A | A_ | B;
  };

The following error is produced:

error: type 'default::(default:A | default:A_ | default:B)' does not exist
   │
22 │     property foo -> A | A_ | B;
   │                     ^^^^^^^^^^ error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant