Files
swift-mirror/validation-test/compiler_crashers_fixed/issue-85034.swift
2025-10-28 19:56:32 -04:00

13 lines
342 B
Swift

// RUN: %target-typecheck-verify-swift
// RUN: %target-swift-emit-silgen %s
class C {
var x = 0
}
do {
let x = C()
let _ = (0, try x.x) // expected-warning {{no calls to throwing functions occur within 'try' expression}}
let _ = (0, try! x.x) // expected-warning {{no calls to throwing functions occur within 'try' expression}}
}