[LLVMbugs] [Bug 12959] New: property with custom getter/setter can't resolve setter when using custom getter as . notation setter
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat May 26 12:42:56 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12959
Bug #: 12959
Summary: property with custom getter/setter can't resolve
setter when using custom getter as . notation setter
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: doug at getitdownonpaper.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When a property uses a custom getter/setter that don't match the name of the
property and that property is set using the getters name in the . notation
setter a compiler error is generated:
i.e.
@property (readwrite, assign, getter=delegate, setter=setDelegate:) id
<NSObject> _delegate;
then
foo.delegate = bar;
Example error from attached sample project:
/Users/doug/Desktop/Setter/Setter/main.m:18:19: error: no setter method
'setDelegate:' for assignment to property
setter.delegate = delegate;
~~~~~~~~~~~~~~~ ^ ~~~~~~~~
1 error generated.
Command /opt/bin/clang failed with exit code 1
http://cl.ly/0f273w3v3n3i2y3q231Z
This works in the release version that ships with Xcode
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list