This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
support instantiated tear-offs #525
Closed
Description
Initial implementation of #301 may not cover this.
- identify these nodes in the AST by examining the staticType
- emit the instantiation
- ensure RTTI is associated
The nodes this can happen to are: PropertyAccess, PrefixedIdentifier and SimpleIdentifier.
You can't write the instantiation explicitly yet (o.m<String>
) but it can be inferred by the type system. These do come up in practice, so we shouldn't defer this one too long. For example, passing a generic function to something that expects a non-generic function type.