Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp committed May 16, 2024
1 parent 09e1838 commit c911afa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/abap/5_syntax/_type_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export class TypeUtils {
}
} else if (source instanceof TableType) {
if (target instanceof TableType) {
return this.isAssignableStrict(source.getRowType(), target);
return this.isAssignableStrict(source.getRowType(), target.getRowType());
} else if (target instanceof UnknownType
|| target instanceof AnyType
|| target instanceof VoidType) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/abap/syntax/syntax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10559,7 +10559,7 @@ CAST zif_sdfsdfsd( ref )->id_draft = 2.`;
expect(issues[0]?.getMessage()).to.equal("CAST, uknown type");
});

it.only("Table types, expect error", () => {
it("Table types, expect error", () => {
const abap = `
TYPES ty1 TYPE STANDARD TABLE OF string WITH EMPTY KEY.
TYPES ty2 TYPE STANDARD TABLE OF xstring WITH EMPTY KEY.
Expand Down

0 comments on commit c911afa

Please sign in to comment.