Carp icon indicating copy to clipboard operation
Carp copied to clipboard

Matches of type unit can yield invalid C

Open scolsen opened this issue 4 years ago • 0 comments

Given:

(match ()
  _ ())

Carp emits:

if(true) {                                                                                 
  void _83_temp = ;                                                                      
  void wildcard_84 = _83_temp;                                                           
  /* () */                                                                               
} 

Which is invalid C. We should filter out such emissions or dissallow matches against type ()

scolsen avatar Oct 23 '21 18:10 scolsen