Files
swift-mirror/test/InterfaceHash/added_private_protocol_property.swift
2020-01-27 15:14:46 -08:00

19 lines
542 B
Swift

// RUN: %empty-directory(%t)
// RUN: %{python} %utils/split_file.py -o %t %s
// RUN: %target-swift-frontend -disable-type-fingerprints -dump-interface-hash -primary-file %t/a.swift 2> %t/a.hash
// RUN: %target-swift-frontend -disable-type-fingerprints -dump-interface-hash -primary-file %t/b.swift 2> %t/b.hash
// RUN: not cmp %t/a.hash %t/b.hash
// BEGIN a.swift
private protocol P {
func f2() -> Int
var y: Int { get set }
}
// BEGIN b.swift
private protocol P {
func f2() -> Int
var x: Int { get set }
var y: Int { get set }
}