Skip to content

Commit d57a087

Browse files
authored
[7.17] Fix spec issues reported in the Java client (#1723) (#1725)
1 parent 59a96d5 commit d57a087

File tree

23 files changed

+1055
-462
lines changed

23 files changed

+1055
-462
lines changed

compiler/src/model/utils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ export function modelType (node: Node): model.ValueOf {
296296
const generics = node.getTypeArguments().map(node => modelType(node))
297297
const identifier = node.getTypeName()
298298
assert(node, Node.isIdentifier(identifier), 'Not an identifier')
299+
assert(node, identifier.getDefinitions().length > 0, 'Unknown definition (missing import?)')
299300

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

0 commit comments

Comments
 (0)