Files
swift-mirror/test/NameLookup/edge-cases.swift
2020-11-16 22:39:44 -05:00

22 lines
360 B
Swift

// RUN: %target-typecheck-verify-swift
struct A {}
struct B {}
func other() -> A {}
func takesB(_: B) {}
func multipleLocalResults1() {
func other() -> B {}
let result = other()
takesB(result)
}
func multipleLocalResults2() {
func other() -> B {}
let result = other()
takesB(result)
let other: Int = 123 // expected-warning {{never used}}
}