mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* [Typechecker] Allow enum cases without payload to witness a static get-only property with Self type protocol requirement * [SIL] Add support for payload cases as well * [SILGen] Clean up comment * [Typechecker] Re-enable some previously disabled witness matching code Also properly handle the matching in some cases * [Test] Update typechecker tests with payload enum test cases * [Test] Update SILGen test * [SIL] Add two FIXME's to address soon * [SIL] Emit the enum case constructor unconditionally when an enum case is used as a witness Also, tweak SILDeclRef::getLinkage to update the 'limit' to 'OnDemand' if we have an enum declaration * [SILGen] Properly handle a enum witness in addMethodImplementation Also remove a FIXME and code added to workaround the original bug * [TBDGen] Handle enum case witness * [Typechecker] Fix conflicts * [Test] Fix tests * [AST] Fix indentation in diagnostics def file
24 KiB
24 KiB