Skip to content

Commit 82499db

Browse files
committed
Merge pull request #194 from stepcode/review/alias_type_test
Added test for alias type of enumeration
2 parents 93d0b0a + e54520f commit 82499db

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

src/fedex_plus/classes_wrapper.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,11 @@ void SCOPEPrint( Scope scope, FILES * files, Schema schema, Express model,
265265
if( t->search_id == CANPROCESS ) {
266266
// Only selects haven't been processed yet and may still be set to
267267
// CANPROCESS.
268-
TYPEselect_print( t, files, schema );
268+
if ( TYPEis_select( t ) )
269+
TYPEselect_print( t, files, schema );
270+
if ( TYPEis_enumeration( t ) )
271+
TYPEprint_descriptions( t, files, schema );
272+
269273
t->search_id = PROCESSED;
270274
}
271275
SCOPEod;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
SCHEMA alias_type;
2+
3+
TYPE enum = ENUMERATION OF (
4+
item1,
5+
item2);
6+
END_TYPE;
7+
8+
TYPE enum_alias = enum;
9+
END_TYPE;
10+
11+
END_SCHEMA;

0 commit comments

Comments
 (0)