Skip to content

Commit

Permalink
[7.17] Fix spec issues reported in the Java client (#1723) (#1725)
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez authored May 24, 2022
1 parent 59a96d5 commit d57a087
Show file tree
Hide file tree
Showing 23 changed files with 1,055 additions and 462 deletions.
1 change: 1 addition & 0 deletions compiler/src/model/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ export function modelType (node: Node): model.ValueOf {
const generics = node.getTypeArguments().map(node => modelType(node))
const identifier = node.getTypeName()
assert(node, Node.isIdentifier(identifier), 'Not an identifier')
assert(node, identifier.getDefinitions().length > 0, 'Unknown definition (missing import?)')

const declaration = identifier.getDefinitions()[0].getDeclarationNode()
// We are looking at a generic parameter
Expand Down
Loading

0 comments on commit d57a087

Please sign in to comment.