File tree Expand file tree Collapse file tree 1 file changed +1
-32
lines changed Expand file tree Collapse file tree 1 file changed +1
-32
lines changed Original file line number Diff line number Diff line change @@ -1319,38 +1319,7 @@ namespace Nemerle.Compiler
13191319 def ty = if (IsIndexer) (GetMemType () :> FixedType.Fun).to.GetSystemType () else GetMemType ().GetSystemType ();
13201320 def parms = parms.MapToArray (_ .GetSystemType ());
13211321
1322- def (ret_type_req_mods, ret_type_opt_mods) = {
1323- def getter = GetGetter ();
1324-
1325- if (getter == null)
1326- (null, null)
1327- else
1328- ( (getter :> MethodBuilder).Header.GetRetTypeRequiredModifiers (),
1329- (getter :> MethodBuilder).Header.GetRetTypeOptionalModifiers () )
1330- }
1331-
1332- def (param_type_req_mods, param_type_opt_mods) = {
1333- def setter = GetSetter () :> MethodBuilder;
1334-
1335- if (setter == null)
1336- (null, null)
1337- else
1338- {
1339- def chop (a) { if (a == null) null else a.ChopLastN (1 ) }
1340- ( chop (setter.Header.GetParamTypeRequiredModifiers ()),
1341- chop (setter.Header.GetParamTypeOptionalModifiers ()) )
1342- }
1343- }
1344-
1345- property_builder = tb.DefineProperty (
1346- Name,
1347- attrs,
1348- ty,
1349- ret_type_req_mods,
1350- ret_type_opt_mods,
1351- parms,
1352- param_type_req_mods,
1353- param_type_opt_mods);
1322+ property_builder = tb.DefineProperty(Name, attrs, ty, parms);
13541323 }
13551324
13561325 internal override Compile () : void
You can’t perform that action at this time.
0 commit comments