Add module interface printing test with non-trivial pattern binding initializer

A stored property can be part of a pattern binding entry whose pattern
declares multiple bindings with a single initializer, for example:

struct S {
  let (x, y) = (0, 0)
}

Make sure these round-trip correctly.
This commit is contained in:
Slava Pestov
2020-09-22 13:54:42 -04:00
parent 7b967a8030
commit 4ff6cda180

View File

@@ -83,6 +83,9 @@ public struct BagOfVariables {
// COMMON: public let a: Swift.Int = 0
public let a: Int = 0
// COMMON: public let (x, y): (Swift.Int, Swift.Int) = (0, 0)
public let (x, y) = (0, 0)
// COMMON: public var b: Swift.Bool = false
public var b: Bool = false