mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Now 'P1 & P2.Type' is parsed as (composition P1, (metatype P2)) instead of (metatype (composition P1, P2)). For now, parsing inheritance clause accepts any TypeRepr, that is not allowed in current Swift grammer. Diagnostic logic will be added in later commits. Also, in Swift3, (composition P1, (metatype P2)) should be fixed to (metatype (composition P1, P2)) for source compatibility.
12 KiB
12 KiB