Files
swift-mirror/test/SILGen/Inputs/def_structA.swift
Manman Ren 2cb20d4e62 [Mangler] mangle the module where an extension is defined if necessary.
If a method is defined within an extension of a class or struct that is
defined in a different module, we mangle the module where the extension is
defined.

If we define function f in module A, and redefine it again in an extension in
module B, we use different mangling to prevent linking in the wrong
SILFunction.

rdar://18057875


Swift SVN r21488
2014-08-27 19:57:21 +00:00

12 lines
135 B
Swift

public struct A {
public var a : Int
public init() {
a = 3
}
}
extension A {
public mutating func test() {
a = 0
}
}