mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This way we can use the same core of the test utility to verify round-tripness of incrementally transferring the syntax tree to swiftSyntax.
18 lines
306 B
Swift
18 lines
306 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %validate-incrparse %s --test-case NO_CHANGES
|
|
// RUN: %validate-incrparse %s --test-case NESTED_INITIALIZERS
|
|
|
|
func start() {}
|
|
|
|
class Bar
|
|
|
|
let y = 1
|
|
|
|
class NestedInitializers {
|
|
<<NESTED_INITIALIZERS<|||init() {>>>
|
|
init() {
|
|
|
|
}
|
|
<<NESTED_INITIALIZERS<|||}>>>
|
|
}
|