[mcs] C# 7 tuple (foundation only).
[mono.git] / mcs / mcs / property.cs
index 0d4efedbd1e6465e4df5f4e50eaa67e07e86db7b..1dd8a86468eb1ab0f2727a649f67d3273ed6d8cd 100644 (file)
@@ -680,6 +680,10 @@ namespace Mono.CSharp
                                Module.PredefinedAttributes.Dynamic.EmitAttribute (PropertyBuilder, member_type, Location);
                        }
 
+                       if (member_type.HasNamedTupleElement) {
+                               Module.PredefinedAttributes.TupleElementNames.EmitAttribute (PropertyBuilder, member_type, Location);
+                       }
+
                        ConstraintChecker.Check (this, member_type, type_expr.Location);
 
                        first.Emit (Parent);