Files
swift-mirror/test/NameLookup/observable_shadowing.swift
Doug Gregor 6265f0c542 [SE-0395] Rename _Observation module to Observation
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.
2023-06-30 11:01:02 -07:00

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)
}