mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The review of SE-0395 is down to small details at this point that won't affect the overall shape of the API much. Rename the model in anticipation of that.
20 lines
509 B
Swift
20 lines
509 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/HasObservable.swift
|
|
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/ReexportsObservation.swift
|
|
// RUN: %target-swift-frontend -typecheck %s -I %t -verify
|
|
// RUN: %target-swift-frontend -typecheck %s -I %t -verify -DVIA_REEXPORT
|
|
|
|
// REQUIRES: observation
|
|
|
|
import HasObservable
|
|
|
|
#if VIA_REEXPORT
|
|
import ReexportsObservation
|
|
#else
|
|
import Observation
|
|
#endif
|
|
|
|
func foo() -> Observable<Int> {
|
|
return .just(42)
|
|
}
|