File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ io.write( "Hello Dao!\n" #{ comment inside codes #} );
55Here are multi-lines comments.
66Here are multi-lines comments.
77#}
8- io.writef( "\nThis version is %s.\n", std.version(1 ) )
8+ io.writef( "\nThis version is %s.\n", std.version(true ) )
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ interface AA
55 routine[]( index : int )=>int;
66 routine.name()=>string;
77
8- routine for( iter : for_iterator );
9- routine[]( iter : for_iterator )=>int;
8+ routine for( iter : ForIterator );
9+ routine[]( iter : ForIterator )=>int;
1010}
1111routine Test( o : AA )
1212{
@@ -23,11 +23,11 @@ class BB
2323 routine[]( index : int ){ return index }
2424 routine.name(){ return "BB" }
2525
26- routine for( iter : for_iterator ){
26+ routine for( iter : ForIterator ){
2727 iter.valid = 1;
2828 iter.iterator = 0;
2929 }
30- routine[]( iter : for_iterator ){
30+ routine[]( iter : ForIterator ){
3131 id = (int)iter.iterator;
3232 iter.valid = id + 1 < 5;
3333 iter.iterator = id + 1;
Original file line number Diff line number Diff line change @@ -6069,7 +6069,7 @@ int DaoInferencer_DoInference( DaoInferencer *self )
60696069 if ( data -> type == DAO_NONE ) goto NotPermit ;
60706070 if ( data -> xBase .subtype == DAO_OBJECT_VARIABLE && at -> tid == DAO_CLASS ) goto NeedInstVar ;
60716071 if ( data -> type != DAO_CONSTANT || data -> xConst .value -> type != DAO_ROUTINE ) goto NotMatch ;
6072- meth = (DaoRoutine * ) value ;
6072+ meth = (DaoRoutine * ) value -> xConst . value ;
60736073 break ;
60746074 case DAO_INTERFACE :
60756075 node = DMap_Find ( at -> aux -> xInterface .methods , mbs );
You can’t perform that action at this time.
0 commit comments