Files
swift-mirror/test/incrParse/invalid.swift
Alex Hoppen d9d5afd15a [incrParse] Refactor the test utility to be more modular
This way we can use the same core of the test utility to verify
round-tripness of incrementally transferring the syntax tree to
swiftSyntax.
2018-07-19 14:47:58 -07:00

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