Project

Profile

Help

Bug #4772

closed

Diagnostics for type errors on $map(xx) and $array(xx)

Added by Michael Kay over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2020-10-02
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, trunk
Fix Committed on Branch:
10, trunk
Fixed in Maintenance Release:
Platforms:

Description

A dynamic function call on a map ($map(xx)) is converted at compile time to a static function call (map:get($map, xx)).

This leads to poor diagnostics if there is a type error in xx: for example

An empty sequence is not allowed as the second argument of map:get()

The same problem applies to calls on $array(index)

Please register to edit this issue

Also available in: Atom PDF