Files
swift-mirror/test/stdlib/Observation/Inputs/ObservableClass.swift
Doug Gregor c098175059 Add test case involving circular references with @Observable
Add a test case for Observable types that are extended from other
source files. Prior to the recent changes to make
`TypeRefinementContext` more lazy, this would trigger circular
references through the `TypeRefinementContextBuilder`.

Finishes rdar://112079160.
2023-08-02 15:07:09 -07:00

8 lines
156 B
Swift

import Foundation
import Observation
@available(SwiftStdlib 5.9, *)
@Observable final public class ObservableClass {
public var state: State = .unused
}