boo-lang / boo

The Boo Programming Language.
BSD 3-Clause "New" or "Revised" License
858 stars 146 forks source link

Can't access a property of a [Property()] of a property of your own type #179

Closed masonwheeler closed 6 years ago

masonwheeler commented 6 years ago
class Foo[of T]:
    property Foo2 as Foo[of T]

    [Property(Bar)]
    private _bar = List[of T]()

    def RemoveFromFoo2(value as T):
        Foo2.Bar.Remove(value)

Expected: this should compile Observed: Remove' is not a member of 'unknown'. (BCE0019)

This works if the property is declared manually, or using the property macro, rather than with the [Property()] attribute.

masonwheeler commented 6 years ago

Fixed.