interactive.handle_command doesn't execute type-annotated statement

Bug #578084 reported by Matt Giuca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mars
Fix Released
High
Matt Giuca

Bug Description

interactive.handle_command type checks the statement given (and the type checker, as usual, annotates all of the expressions in the statement with types). However, handle_command throws away the annotated version, and uses the original one to execute.

This is bad because later passes may want to use that type information -- in bug #574108, ast_cfg needs it to generate the instruction information.

Change it so it executes the annotated version of the statement.

Tags: types

Related branches

Revision history for this message
Matt Giuca (mgiuca) wrote :

Fixed in trunk r1027.

Changed in mars:
status: Triaged → Fix Committed
Matt Giuca (mgiuca)
Changed in mars:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.