Browse Source

Fixed ReadOnly attr issue on imports. Fixes #430.

woollybah 6 năm trước cách đây
mục cha
commit
cd9c4061fa
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      iparser.bmx

+ 3 - 3
iparser.bmx

@@ -734,12 +734,12 @@ Type TIParser
 				classDecl.InsertDecl decl
 
 			Case ".", "@" ' field
+				Local d_attrs:Int = decl_attrs | DECL_FIELD
 				If _toker._toke = "@" Then
-					decl_attrs :| DECL_READ_ONLY
+					d_attrs :| DECL_READ_ONLY
 				End If
 				NextToke
-				decl_attrs :| DECL_FIELD
-				Local decl:TDecl= ParseDecl( _toke,decl_attrs )
+				Local decl:TDecl= ParseDecl( _toke,d_attrs )
 				classDecl.InsertDecl decl
 			Rem
 			Case "private"