Skip to content

Commit 666234c

Browse files
swallezgithub-actions[bot]
authored andcommitted
Fix spec issues reported in the Java client (#1723)
1 parent 58fd355 commit 666234c

File tree

22 files changed

+1021
-464
lines changed

22 files changed

+1021
-464
lines changed

compiler/src/model/utils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ export function modelType (node: Node): model.ValueOf {
301301
const generics = node.getTypeArguments().map(node => modelType(node))
302302
const identifier = node.getTypeName()
303303
assert(node, Node.isIdentifier(identifier), 'Not an identifier')
304+
assert(node, identifier.getDefinitions().length > 0, 'Unknown definition (missing import?)')
304305

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

0 commit comments

Comments
 (0)