Files
swift-mirror/test/InterfaceHash/added_private_method.swift
Chris Willmore 538f7847f5 Only ignore private decls at global level.
<rdar://problem/22856386> Changing a private stored property (in a
struct or class) or a private method (in a class) /should/ force other
files to recompile

Swift SVN r32239
2015-09-25 21:16:54 +00:00

24 lines
437 B
Swift

// RUN: mkdir -p %t
// RUN: %S/../../utils/split_file.py -o %t %s
// RUN: %target-swift-frontend -dump-interface-hash %t/a.swift 2> %t/a.hash
// RUN: %target-swift-frontend -dump-interface-hash %t/b.swift 2> %t/b.hash
// RUN: not cmp %t/a.hash %t/b.hash
// BEGIN a.swift
class C {
func f2() -> Int {
return 0
}
}
// BEGIN b.swift
class C {
func f2() -> Int {
return 0
}
private func f3() -> Int {
return 1
}
}