mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Lazily instantiate class template members. This means we no longer
reject some programs that clang accepts, such as the following:
```
template<class T> struct Foo { void fail(T value) { value.fail(); } };
using Bar = Foo<int>;
```
The above program will not error so long as `Bar::fail` isn't called.
(Previously, we'd fail to import `Bar`.)
6.1 KiB
6.1 KiB