Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365175 - [Xtend] typing in nested switch statements doesn't work as expected
Summary: [Xtend] typing in nested switch statements doesn't work as expected
Status: CLOSED FIXED
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.2.0   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 376037
Blocks:
  Show dependency tree
 
Reported: 2011-11-30 05:31 EST by Moritz Eysholdt CLA
Modified: 2017-10-31 11:18 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Eysholdt CLA 2011-11-30 05:31:14 EST
Example:

---
class foo  {
	def bar(Object o) {
		switch (o) {
			CharSequence:
				switch(o) {
					Comparable: {
						o.charAt(1)
						o.compareTo(o)
					}
				}
		}
	}
}
---

Within the second case-statement, I'd expect to be able to access the methods declared in interface CharSequence and in interface Comparable.

However, the reference to "o.charAt(1)" can not be resolved.
Comment 1 Dennis Huebner CLA 2013-02-14 03:52:27 EST
Works like a charm with the new type system.
Comment 2 Eclipse Webmaster CLA 2017-10-31 11:06:48 EDT
Requested via bug 522520.

-M.
Comment 3 Eclipse Webmaster CLA 2017-10-31 11:18:13 EDT
Requested via bug 522520.

-M.