Bug 438341 - [@Property] regression: Type inference no longer works
Summary: [@Property] regression: Type inference no longer works
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.6.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-27 03:52 EDT by Jan Koehnlein CLA
Modified: 2014-06-27 03:55 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Koehnlein CLA 2014-06-27 03:52:00 EDT
Looks like type inference of @Property variables no longer works:

class Foo {
  @Property var bar = true // error: Type cannot be inferred
}

Used to work fine with 2.6.1.
Comment 1 Stefan Oehme CLA 2014-06-27 03:55:06 EDT
That was intentional. You could write @Property on a field with an inferred type, but if you actually used the generated setter you got "TypeResolutionAdapter removed while resolving" errors in the editor.