blob: c85f407fc2029c9e9fa1d063cef072fbcdb4dd62 [file] [log] [blame]
// RUN: %round-trip-syntax-test --swift-syntax-test %swift-syntax-test --file %s
class C {
// Erroneous typealias decl.
typealias Inner: Foo = Int
// Implict accessor with attribute at the top of its body.
var x: Int {
@objc
func f() {}
}
}
// Orphan '}' at top level
}
// Compound name.
foo(x:y:)()
// Type identifier with erroneous component.
let a: Int.)
// Type with unknown attribute followed by parentheses.
typealias b = @foobar() -> Void
typealias c = @foobar(a) () -> Void
// keypath expressions.
let d = \.foo
let e = \.[1]
let f = \.?.bar
let optionalArray: [Int]?