Record macro with Include
От: DarthSidius  
Дата: 23.04.16 10:13
Оценка:
    [Record (Include = [Prop1, Prop2])]
    class Asd
    {
        public Prop1 : int { get; set }
        
        public Prop2 : int {
            mutable Prop2_ : int;
            get { Prop2_ }
            set { Prop2_ = value }
        }
    }

    Main() : void
    {
            def a = Asd(1, 2); // error : wrong number of parameters in call, needed 1, got 2
            WriteLine(a);
            ...
... << RSDN@Home (RF) 1.2.0 alpha 5 rev. 58>>
♠♠♥♠♠♦♥
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.