Files
swift-mirror/test/ModuleInterface/Inputs/NoncopyableGenerics.swift
2023-11-24 14:59:56 -07:00

36 lines
578 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// A Swift × Haskell stdlib flavour.
public struct Vector<T: ~Copyable> {
subscript(_ i: UInt) -> T {
fatalError("todo")
}
}
// These are purely to add test coverage of different constructs
public struct Toys {
static func test_parallelAssignment() {
var y: Int
var x: Int
(x, y) = (10, 11)
}
public struct rdar118697289_S1<Element> {
let element: Element
func f() -> Element { element }
}
public struct rdar118697289_S2<Element> {
let element: Element
subscript(i: Int) -> Element {
element
}
}
}