Files
swift-mirror/test/Sema/struct_equatable_hashable_access.swift
Louis D'hauwe a89ea380a9 [ASTPrinter] Print expressions
Add new `-print-ast-decl` frontend option for only printing declarations,
to match existing behavior.
Some tests want to print the AST, but don't care about expressions.

The existing `-print-ast` option now prints function bodies and expressions.
Not all expressions are printed yet, but most common ones are.
2022-01-11 14:24:16 -08:00

11 lines
424 B
Swift

// RUN: %target-swift-frontend -print-ast-decl %s 2>&1 | %FileCheck %s
// Check that synthesized members show up as 'fileprivate', not 'private.
// CHECK-LABEL: private struct PrivateConformer : Hashable {
private struct PrivateConformer: Hashable {
var value: Int
// CHECK-DAG: fileprivate var hashValue: Int { get }
// CHECK-DAG: @_implements(Equatable, ==(_:_:)) fileprivate static func __derived_struct_equals
}