Files
swift-mirror/test/SILGen/magic_identifiers_inside_property_initializers.swift
Joe Groff 7aa8f8cc90 SILGen: Don't override the SourceLoc for magic identifiers in stored property initializers.
Refactoring stored property initializers to reuse the codegen for default argument generators caused them to accidentally inherit this additional bit of policy we don't want. Fixes SR-4325.
2017-04-06 12:03:29 -07:00

8 lines
264 B
Swift

// RUN: %target-swift-frontend -emit-silgen %s | %FileCheck %s
class Test {
// CHECK-LABEL: sil hidden [transparent] @_T046magic_identifiers_inside_property_initializers4TestC4fileSSvfi
// CHECK: string_literal utf16 "{{.*}}.swift"
let file = #file
}