View Issue Details

IDProjectCategoryView StatusLast Update
0036025LazarusIDEpublic2020-07-30 09:47
ReporterZoë Peterson Assigned ToPascal Riekenberg  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version2.0.4 
Summary0036025: Codetools should support Objective C related result types
DescriptionCurrently the code tools in {$modeswitch objectivec1} can't autocomplete after creating an NSObject descendant with .alloc since it just sees the "id" return type and doesn't know what to do with it.

When fixing bug 35994, Jonas found that Objective C has a concept called "related result types" that actually maps the return type for id/identifier type, as returned by "alloc", "init*", and "autoRelease" to their correct concrete classes: http://clang.llvm.org/docs/LanguageExtensions.html#objective-c-features

He added support for them to FPC in revs 42815 and 42816. It would be nice if Lazarus could handle the same cases.
TagsNo tags attached.
Fixed in Revision
LazTarget
Widgetset
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-08-30 19:06 Zoë Peterson New Issue
2020-07-30 09:47 Pascal Riekenberg Assigned To => Pascal Riekenberg
2020-07-30 09:47 Pascal Riekenberg Status new => assigned