-
| | |
|------------------|-----------------|
|Previous ID | SR-4434 |
|Radar | None |
|Original Reporter | tarunon (JIRA…
-
https://zxfcumtcs.github.io/2022/02/01/SwiftProtocol1/
我们将从实践技巧、实现原理两个方面对 Swift Protocol 展开深入讨论。 本文作为上篇主要介绍实践技巧,以一个 Protocol 相关的编译错误为引,通过实例对 Type Erasure、Opaque Types 、Generics 以及 Phantom Types 做了较…
-
Swift recently accepted a [proposal for a `consume` operator][consume].
The `consume` operator will let us declare that a function takes unique ownership of a type https://github.com/apple/swift-ev…
-
### Description
Recursive generics cause infinite recursion when deserialising `.swiftmodule` file.
### Reproduction
```swift
// badaboom.swift
protocol Tree: AnyObject {}
class TreeBase {}
fin…
-
| | |
|------------------|-----------------|
|Previous ID | SR-3459 |
|Radar | rdar://problem/26724917 |
|Original Repor…
-
**Description**
The Swift compiler produces a fatal error when compiling a combination of generics and optionals.
**Steps to reproduce**
Compile the following with `swiftc`:
```swift
class Re…
-
| | |
|------------------|-----------------|
|Previous ID | SR-4247 |
|Radar | None |
|Original Reporter | @palimondo…
-
https://developer.apple.com/videos/play/wwdc2016/416
In this advanced session, find out how structs, classes, protocols, and generics are implemented in Swift. Learn about their relative costs in dif…
-
| | |
|------------------|-----------------|
|Previous ID | SR-7444 |
|Radar | None |
|Original Reporter | charlieMonroe…
-
**Description**
The compiler crashes when combining the use of variadic generics with opaque types.
Compiler crash message in Xcode:
> Command SwiftEmitModule failed with a nonzero exit code
*…