mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
fix <rdar://problem/19259730> Using mutating methods in a struct initializer with a let property is rejected
while we're at it, improve the QoI for actually-invalid mutating method calls in struct initalizers. Swift SVN r24030
This commit is contained in:
@@ -92,6 +92,10 @@ ERROR(variable_escape_before_initialized,sil_analysis,none,
|
||||
ERROR(self_use_before_init_in_delegatinginit,sil_analysis,none,
|
||||
"use of '%0' in delegating initializer before self.init is called",
|
||||
(StringRef))
|
||||
ERROR(self_use_before_init_in_structinit,sil_analysis,none,
|
||||
"use of '%0' in delegating initializer before self.init is called",
|
||||
(StringRef))
|
||||
|
||||
ERROR(variable_addrtaken_before_initialized,sil_analysis,none,
|
||||
"address of variable '%0' taken before it is initialized",
|
||||
(StringRef))
|
||||
|
||||
Reference in New Issue
Block a user